Skip to content

Commit 7dec07a

Browse files
committed
Add @typescript-eslint/no-unnecessary-parameter-property-assignment rule
1 parent 3271346 commit 7dec07a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ module.exports = {
444444
'@typescript-eslint/no-floating-promises': [
445445
'error',
446446
{
447+
checkThenables: true,
447448
ignoreVoid: true, // Prepend a function call with `void` to mark it as not needing to be await'ed, which silences this rule.
448449
ignoreIIFE: true
449450
}
@@ -527,6 +528,7 @@ module.exports = {
527528
// Also disable `no-constant-condition` when this is enabled
528529
// '@typescript-eslint/no-unnecessary-condition': 'error',
529530

531+
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
530532
'@typescript-eslint/no-unnecessary-qualifier': 'error',
531533
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
532534
'@typescript-eslint/no-unnecessary-type-assertion': 'error',

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.11.0",
49-
"@typescript-eslint/parser": "^7.11.0",
48+
"@typescript-eslint/eslint-plugin": "^7.16.0",
49+
"@typescript-eslint/parser": "^7.16.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.11.0",
56-
"@typescript-eslint/parser": ">=7.11.0",
55+
"@typescript-eslint/eslint-plugin": ">=7.16.0",
56+
"@typescript-eslint/parser": ">=7.16.0",
5757
"eslint": ">=8.56.0",
5858
"typescript": ">=5.0.0"
5959
}

0 commit comments

Comments
 (0)