File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
eslint-config-godaddy-react-typescript
eslint-config-godaddy-typescript Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eslint-config-godaddy-react-typescript " : patch
3
+ " eslint-config-godaddy-typescript " : patch
4
+ ---
5
+
6
+ Fix incorrect no-shadow warnings for TS enums
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ module.exports = {
21
21
args : 'after-used' ,
22
22
ignoreRestSiblings : false
23
23
}
24
- ]
24
+ ] ,
25
+ // Disable the base rule and enable TypeScript version to avoid incorrect reports
26
+ // See https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-shadow.md
27
+ 'no-shadow' : 'off' ,
28
+ '@typescript-eslint/no-shadow' : 'warn'
25
29
}
26
30
} ,
27
31
{
Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ module.exports = {
20
20
args : 'after-used' ,
21
21
ignoreRestSiblings : false
22
22
}
23
- ]
23
+ ] ,
24
+ // Disable the base rule and enable TypeScript version to avoid incorrect reports
25
+ // See https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-shadow.md
26
+ 'no-shadow' : 'off' ,
27
+ '@typescript-eslint/no-shadow' : 'warn'
24
28
}
25
29
}
26
30
]
You can’t perform that action at this time.
0 commit comments