Skip to content
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import js from "@eslint/js";
import globals from "globals";
import stylistic from "@stylistic/eslint-plugin";
import tseslint from "typescript-eslint";

export default [
export default tseslint.config(
js.configs.recommended,
tseslint.configs.recommended,
{
plugins: {
"@stylistic": stylistic
Expand Down Expand Up @@ -34,4 +36,4 @@ export default [
"releases/"
]
}
];
);
2,805 changes: 0 additions & 2,805 deletions gradle/verification-metadata.xml

This file was deleted.

121 changes: 116 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"type": "module",
"devDependencies": {
"@eslint/js": "^9.23.0",
"@stylistic/eslint-plugin": "^4.2.0",
"esbuild": "^0.25.1",
"eslint": "^9.23.0",
"pdfjs-dist": "^5.0.375"
"pdfjs-dist": "^5.1.91",
"typescript": "^5.8.2",
"typescript-eslint": "^8.28.0"
}
}
5 changes: 3 additions & 2 deletions process_static.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ async function processStatic() {
const outDirDebug = "app/src/debug/assets/viewer";

await commandLine(getCommand("node_modules/.bin/eslint"), ".");
await commandLine(getCommand("node_modules/.bin/tsc"));

await processScripts({
rootDir,
entryPoints: ["js/index.js", "js/worker.js"],
entryPoints: ["js/index.ts", "js/worker.ts"],
outDir,
production: true,
});
await processScripts({
rootDir,
entryPoints: ["js/index.js", "js/worker.js"],
entryPoints: ["js/index.ts", "js/worker.ts"],
outDir: outDirDebug,
production: false,
});
Expand Down
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "node",
"rootDir": "./viewer/js",
"esModuleInterop": true,
"isolatedModules": true,
"noEmit": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
},
"include": [
"viewer/js/index.ts",
"viewer/js/worker.ts"
]
}
1 change: 1 addition & 0 deletions viewer/js/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./index.js";
File renamed without changes.