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 = {
2121 args : 'after-used' ,
2222 ignoreRestSiblings : false
2323 }
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'
2529 }
2630 } ,
2731 {
Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ module.exports = {
2020 args : 'after-used' ,
2121 ignoreRestSiblings : false
2222 }
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'
2428 }
2529 }
2630 ]
You can’t perform that action at this time.
0 commit comments