Skip to content

Commit 36dd3ea

Browse files
committed
Use new name of renamed rule
1 parent 047d2ba commit 36dd3ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ module.exports = {
505505
}
506506
],
507507
'no-throw-literal': 'off',
508-
'@typescript-eslint/no-throw-literal': [
508+
'@typescript-eslint/only-throw-error': [
509509
'error',
510510
{
511511
// This should ideally be `false`, but it makes rethrowing errors inconvenient. There should be a separate `allowRethrowingUnknown` option.

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.3.0",
49-
"@typescript-eslint/parser": "^7.3.0",
48+
"@typescript-eslint/eslint-plugin": "^7.4.0",
49+
"@typescript-eslint/parser": "^7.4.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.3.0",
56-
"@typescript-eslint/parser": ">=7.3.0",
55+
"@typescript-eslint/eslint-plugin": ">=7.4.0",
56+
"@typescript-eslint/parser": ">=7.4.0",
5757
"eslint": ">=8.56.0",
5858
"typescript": ">=5.0.0"
5959
}

0 commit comments

Comments
 (0)