Skip to content

Commit 7ab4273

Browse files
committed
✅ tests: add js test
1 parent 2976251 commit 7ab4273

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

example/src/global.tsx example/src/global.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ if (pwa) {
1313
});
1414

1515
// Pop up a prompt on the page asking the user if they want to use the latest version
16-
window.addEventListener('sw.updated', (event: Event) => {
17-
const e = event as CustomEvent;
16+
window.addEventListener('sw.updated', (event) => {
17+
const e = event;
1818
const reloadSW = async () => {
1919
// Check if there is sw whose state is waiting in ServiceWorkerRegistration
2020
// https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration

src/eslint.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ ModuleResolver.resolve = function(moduleName: string) {
1212
};
1313

1414
module.exports = {
15-
extends: ['airbnb-typescript', 'prettier', 'prettier/react', 'prettier/@typescript-eslint'],
15+
extends: [
16+
'airbnb',
17+
'airbnb-typescript',
18+
'prettier',
19+
'prettier/react',
20+
'prettier/@typescript-eslint',
21+
],
1622
plugins: ['eslint-comments', 'jest', 'unicorn', 'react-hooks'],
1723
env: {
1824
browser: true,

0 commit comments

Comments
 (0)