Skip to content

Commit 5a80d61

Browse files
committed
configure no-unused-vars
1 parent 9b540d2 commit 5a80d61

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.eslintrc.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,18 @@
5656
{
5757
"files": ["*.ts", "*.tsx"],
5858
"rules": {
59-
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
59+
"@typescript-eslint/no-unused-vars": [
60+
"error",
61+
{
62+
"args": "all",
63+
"argsIgnorePattern": "^_",
64+
"caughtErrors": "all",
65+
"caughtErrorsIgnorePattern": "^_",
66+
"destructuredArrayIgnorePattern": "^_",
67+
"varsIgnorePattern": "^_",
68+
"ignoreRestSiblings": true
69+
}
70+
]
6071
}
6172
}
6273
],

src/store/notification-permission/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const requestNotificationPermission = createAsyncThunk<string | undefined
2828
try {
2929
const messaging = getMessaging(firebaseApp);
3030
return await getToken(messaging);
31-
} catch (_) {
31+
} catch (_error) {
3232
throw new Error('unsupported');
3333
}
3434
} else if (permission === 'default') {

0 commit comments

Comments
 (0)