sharkey/packages/sw/src/scripts
Kagami Sascha Rosylight cfd7cf0f1e
refactor(sw): Typecheck the service worker (#9314)
* 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
2022-12-12 22:20:35 +09:00
..
create-notification.ts refactor(sw): Typecheck the service worker (#9314) 2022-12-12 22:20:35 +09:00
get-account-from-id.ts feat: Improve Push Notification (#7667) 2022-04-30 21:52:07 +09:00
get-user-name.ts feat: Improve Push Notification (#7667) 2022-04-30 21:52:07 +09:00
i18n.ts feat: Improve Push Notification (#7667) 2022-04-30 21:52:07 +09:00
lang.ts Fix lint errors (except @typescript-eslint/prefer-nullish-coalescing) (#9311) 2022-12-12 19:27:47 +09:00
login-id.ts feat: Improve Push Notification (#7667) 2022-04-30 21:52:07 +09:00
notification-read.ts Fix lint errors (except @typescript-eslint/prefer-nullish-coalescing) (#9311) 2022-12-12 19:27:47 +09:00
operations.ts refactor(sw): Typecheck the service worker (#9314) 2022-12-12 22:20:35 +09:00
twemoji-base.ts feat: Add Badge Image to Push Notification (#8012) 2022-06-20 00:33:46 +09:00
url.ts Fix lint errors (except @typescript-eslint/prefer-nullish-coalescing) (#9311) 2022-12-12 19:27:47 +09:00