mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 16:03:07 +02:00
cfd7cf0f1e
* Typecheck the service worker Currently the service worker build never typechecks, since esbuild and typescript-eslint don't do such job. esbuild: https://esbuild.github.io/content-types/#typescript >However, esbuild does not do any type checking so you will still need to run tsc -noEmit in parallel with esbuild to check types. This is not something esbuild does itself. typescript-eslint: https://typescript-eslint.io/linting/troubleshooting#why-dont-i-see-typescript-errors-in-my-eslint-output >TypeScript's compiler (or whatever your build chain may be) is specifically designed and built to validate the correctness of your codebase. Our tooling does not reproduce the errors that TypeScript provides, because doing so would slow down the lint run [1], and duplicate the errors that TypeScript already outputs for you. Adding this step adds tons of TS errors 😱 * Override lib-webworker with service worker
21 lines
489 B
JSON
21 lines
489 B
JSON
{
|
|
"name": "sw",
|
|
"private": true,
|
|
"scripts": {
|
|
"watch": "node build.js watch",
|
|
"build": "node build.js",
|
|
"lint": "tsc --noEmit && eslint --quiet src/**/*.ts"
|
|
},
|
|
"dependencies": {
|
|
"esbuild": "^0.14.42",
|
|
"idb-keyval": "^6.1.0",
|
|
"misskey-js": "0.0.14"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/parser": "^5.45.0",
|
|
"@typescript/lib-webworker": "npm:@types/serviceworker@^0.0.58",
|
|
"eslint": "^8.16.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"typescript": "4.9.4"
|
|
}
|
|
}
|