Skip to content

Commit 047d2ba

Browse files

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ module.exports = {
677677
// allowSafe: true
678678
// }
679679
// ],
680-
680+
681681
'default-case': 'off', // It conflicts with `@typescript-eslint/switch-exhaustiveness-check`. It would still be nice to have this rule for non-exhaustive switches though.
682682
'@typescript-eslint/switch-exhaustiveness-check': [
683683
'error',
@@ -713,6 +713,7 @@ module.exports = {
713713
ignoreDifferentlyNamedParameters: true
714714
}
715715
],
716+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
716717

717718
// Disabled per typescript-eslint recommendation: https://github.com/typescript-eslint/typescript-eslint/blob/e26e43ffba96f6d46198b22f1c8dd5c814db2652/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
718719
'no-undef': 'off',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
"simple"
4646
],
4747
"devDependencies": {
48-
"@typescript-eslint/eslint-plugin": "^7.0.2",
49-
"@typescript-eslint/parser": "^7.0.2",
48+
"@typescript-eslint/eslint-plugin": "^7.3.0",
49+
"@typescript-eslint/parser": "^7.3.0",
5050
"ava": "^6.1.2",
5151
"eslint": "^8.56.0",
5252
"typescript": "^5.3.3"
5353
},
5454
"peerDependencies": {
55-
"@typescript-eslint/eslint-plugin": ">=7.0.2",
56-
"@typescript-eslint/parser": ">=7.0.2",
55+
"@typescript-eslint/eslint-plugin": ">=7.3.0",
56+
"@typescript-eslint/parser": ">=7.3.0",
5757
"eslint": ">=8.56.0",
5858
"typescript": ">=5.0.0"
5959
}

0 commit comments

Comments
 (0)