Skip to content

Commit b049640

Browse files
mikehardyLunatiqueCoder
authored andcommitted
style(lint): eliminate false positives in ts projects
Hopefully integrates via PR upstream in `@react-native-community`, this appears to be the standard configuration for no-shadow in typescript projects, see: react-native-community/react-native-template-typescript#238
1 parent 12eff72 commit b049640

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

template/.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ module.exports = {
3838
'react/no-unescaped-entities': 'off',
3939
'react/jsx-uses-react': 'off',
4040
'react/react-in-jsx-scope': 'off',
41+
'no-shadow': 'off',
42+
'@typescript-eslint/no-shadow': ['error'],
4143
},
4244
};

0 commit comments

Comments
 (0)