Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 0 additions & 35 deletions .prettierignore

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode",
"biomejs.biome",
"yoavbls.pretty-ts-errors",
"bodil.blueprint-gtk",
"nativescript.nativescript"
Expand Down
15 changes: 7 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@
"**/.yarn": true,
"**/.pnp.*": true
},
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"javascript.updateImportsOnFileMove.enabled": "never",
"typescript.updateImportsOnFileMove.enabled": "never",
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "biomejs.biome",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"xml.downloadExternalResources.enabled": true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
32 changes: 0 additions & 32 deletions .yarn/sdks/prettier/bin/prettier.cjs

This file was deleted.

32 changes: 0 additions & 32 deletions .yarn/sdks/prettier/index.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarn/sdks/prettier/package.json

This file was deleted.

92 changes: 92 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"useImportType": "warn",
"useNodejsImportProtocol": "error",
"noNonNullAssertion": "off"
},
"suspicious": {
"noExplicitAny": "warn",
"noConsole": "off"
},
"correctness": {
"noUnusedImports": "warn"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"jsxQuoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false
}
},
"json": {
"formatter": {
"indentWidth": 2,
"trailingCommas": "none",
"lineWidth": 120
}
},
"css": {
"parser": {
"tailwindDirectives": true
},
"formatter": {
"indentWidth": 2,
"quoteStyle": "single"
}
},
"files": {
"includes": [
"**",
"!**/node_modules",
"!**/dist",
"!**/lib",
"!**/build",
"!**/builddir",
"!**/flatpak-build",
"!**/.flatpak-builder",
"!**/repo",
"!**/.yarn",
"!**/coverage",
"!**/refs",
"!**/references",
"!**/@types",
"!**/templates",
"!**/prebuilds",
"!**/eu.jumplink.Learn6502.tar.gz",
"!**/_site",
"!**/_includes",
"!**/platforms",
"!packages/app-android/app/i18n",
"!packages/app-web/_site",
"!packages/app-web/_includes",
"!packages/app-android/platforms",
"!**/*.blp",
"!**/*.gresource",
"!**/*.compiled",
"!**/*.metainfo.xml"
]
}
}
12 changes: 2 additions & 10 deletions eu.jumplink.Learn6502.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@
"runtime": "org.gnome.Platform",
"runtime-version": "50",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.node24",
"org.freedesktop.Sdk.Extension.typescript"
],
"sdk-extensions": ["org.freedesktop.Sdk.Extension.node24", "org.freedesktop.Sdk.Extension.typescript"],
"build-options": {
"append-path": "/usr/lib/sdk/node24/bin:/usr/lib/sdk/typescript/bin:/app/bin"
},
"command": "eu.jumplink.Learn6502",
"finish-args": [
"--device=dri",
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland"
],
"finish-args": ["--device=dri", "--share=ipc", "--socket=fallback-x11", "--socket=wayland"],
"modules": [
{
"name": "Learn6502",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"developer": {
"id": "eu.jumplink",
"name": "Pascal Garber",
"email": "pascal@mailfreund.de",
"email": "pascal@mailfreun.de",
"nameTranslatable": false
},
"summary": "Program vintage game consoles",
Expand Down Expand Up @@ -363,7 +363,7 @@
"build:android": "yarn workspace @learn6502/app-android run build",
"check": "yarn workspaces foreach -v -W -t run check",
"check:flatpak:repo": "flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo",
"check:format": "yarn exec prettier . --check",
"check:format": "gjsify format --check",
"flatpak:regen": "gjsify flatpak init --force --metainfo packages/app-gnome/data/metainfo/eu.jumplink.Learn6502.metainfo.xml.in --desktop packages/app-gnome/data/eu.jumplink.Learn6502.desktop.in",
"start": "yarn start:gnome",
"start:gnome": "yarn workspace @learn6502/app-gnome run start",
Expand All @@ -372,19 +372,19 @@
"start:android": "yarn workspace @learn6502/app-android run start",
"clear": "yarn workspaces foreach -v --parallel -W run clear && yarn _clear",
"_clear": "rm -rf builddir build-dir .flatpak-builder flatpak-build repo eu.jumplink.Learn6502.tar.gz",
"format": "yarn exec prettier . --write",
"prettier": "node .yarn/sdks/prettier/index.cjs"
"format": "gjsify format",
"fix": "gjsify fix"
},
"author": "Pascal Garber <pascal@mailfreund.de>",
"author": "Pascal Garber <pascal@mailfreun.de>",
"license": "GPL-3.0",
"workspaces": [
"packages/*",
"packages/app-android",
"packages/app-web"
],
"devDependencies": {
"@gjsify/cli": "^0.4.13",
"prettier": "^3.8.3",
"@biomejs/biome": "^2.4.13",
"@gjsify/cli": "^0.4.14",
"typescript": "^6.0.3"
},
"packageManager": "yarn@4.13.0"
Expand Down
12 changes: 2 additions & 10 deletions packages/6502/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
// We don't want to use the DOM types in the 6502 package to make it cross-platform,
// but we need the interval and timeout functions.
declare function setInterval(
handler: TimerHandler,
timeout?: number,
...arguments: any[]
): number;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function clearInterval(handle?: number): void;

declare function setTimeout(
handler: TimerHandler,
timeout?: number,
...arguments: any[]
): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function clearTimeout(handle?: number): void;

type TimerHandler = string | Function;
Loading
Loading