Skip to content

Commit 6782a76

Browse files
committed
Add @typescript-eslint/related-getter-setter-pairs rule
https://typescript-eslint.io/rules/related-getter-setter-pairs/
1 parent 517b388 commit 6782a76

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,12 @@ const rules = {
466466
//
467467
// Also related: https://github.com/typescript-eslint/typescript-eslint/issues/1798
468468
// Also disable `no-constant-condition` when this is enabled
469-
// '@typescript-eslint/no-unnecessary-condition': 'error',
469+
// '@typescript-eslint/no-unnecessary-condition': [
470+
// 'error',
471+
// {
472+
// checkTypePredicates: true
473+
// }
474+
// ],
470475

471476
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
472477
'@typescript-eslint/no-unnecessary-qualifier': 'error',
@@ -559,6 +564,7 @@ const rules = {
559564
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
560565
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
561566
'@typescript-eslint/promise-function-async': 'error',
567+
'@typescript-eslint/related-getter-setter-pairs': 'error',
562568
quotes: 'off',
563569
'@stylistic/quotes': [
564570
'error',

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
"simple"
5151
],
5252
"dependencies": {
53-
"@stylistic/eslint-plugin": "^2.6.1",
53+
"@stylistic/eslint-plugin": "^2.10.1",
5454
"eslint-config-xo": "^0.46.0",
55-
"typescript-eslint": "^8.3.0"
55+
"typescript-eslint": "^8.15.0"
5656
},
5757
"devDependencies": {
58-
"ava": "^6.1.3",
59-
"eslint": "^9.8.0",
60-
"typescript": "^5.5.4"
58+
"ava": "^6.2.0",
59+
"eslint": "^9.15.0",
60+
"typescript": "^5.6.3"
6161
},
6262
"peerDependencies": {
6363
"eslint": ">=9.8.0",

0 commit comments

Comments
 (0)