Skip to content

Commit ecc3f02

Browse files
authored
Merge pull request #127 from github/fix-no-shadow-rule-for-typescript
Fix no shadow rule for typescript
2 parents 1a8e491 + 7285de2 commit ecc3f02

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

lib/configs/typescript.js

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module.exports = {
55
rules: {
66
camelcase: 'off',
77
'no-unused-vars': 'off',
8+
'no-shadow': 'off',
9+
'@typescript-eslint/no-shadow': 'on',
810
'@typescript-eslint/interface-name-prefix': 'off',
911
'@typescript-eslint/array-type': ['error', {default: 'array-simple'}],
1012
'@typescript-eslint/no-use-before-define': 'off',

package-lock.json

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)