diff --git a/app/javascript/mastodon/service_worker/entry.js b/app/javascript/mastodon/service_worker/entry.js index a4aebcd3a7f..6ba4907827b 100644 --- a/app/javascript/mastodon/service_worker/entry.js +++ b/app/javascript/mastodon/service_worker/entry.js @@ -1,3 +1,8 @@ +// from https://joshuatz.com/posts/2021/strongly-typed-service-workers/ +/// +/// +/// + import { ExpirationPlugin } from 'workbox-expiration'; import { precacheAndRoute } from 'workbox-precaching'; import { registerRoute } from 'workbox-routing'; diff --git a/app/javascript/mastodon/service_worker/web_push_locales.js b/app/javascript/mastodon/service_worker/web_push_locales.js index 89ae20007bb..4071b8fa051 100644 --- a/app/javascript/mastodon/service_worker/web_push_locales.js +++ b/app/javascript/mastodon/service_worker/web_push_locales.js @@ -1,3 +1,7 @@ +/// +/// +/// + /* eslint-disable import/no-commonjs -- We need to use CommonJS here as its imported into a preval file (`emoji_compressed.js`) */ diff --git a/app/javascript/mastodon/service_worker/web_push_notifications.js b/app/javascript/mastodon/service_worker/web_push_notifications.js index 77187a59ed2..c17c1ee693b 100644 --- a/app/javascript/mastodon/service_worker/web_push_notifications.js +++ b/app/javascript/mastodon/service_worker/web_push_notifications.js @@ -1,3 +1,7 @@ +/// +/// +/// + import { IntlMessageFormat } from 'intl-messageformat'; import { unescape } from 'lodash'; diff --git a/tsconfig.json b/tsconfig.json index cc1f18a9925..4b0e63d9cef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,6 @@ "noImplicitReturns": true, "noUncheckedIndexedAccess": true, "esModuleInterop": true, - "skipLibCheck": true, "baseUrl": "./", "incremental": true, "tsBuildInfoFile": "tmp/cache/tsconfig.tsbuildinfo",