File tree 2 files changed +13
-2
lines changed
src/store/notification-permission
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 56
56
{
57
57
"files" : [" *.ts" , " *.tsx" ],
58
58
"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
+ ]
60
71
}
61
72
}
62
73
],
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const requestNotificationPermission = createAsyncThunk<string | undefined
28
28
try {
29
29
const messaging = getMessaging ( firebaseApp ) ;
30
30
return await getToken ( messaging ) ;
31
- } catch ( _ ) {
31
+ } catch ( _error ) {
32
32
throw new Error ( 'unsupported' ) ;
33
33
}
34
34
} else if ( permission === 'default' ) {
You can’t perform that action at this time.
0 commit comments