Skip to content

Commit bb78a08

Browse files
Update ESLint config (#242)
1 parent acff43c commit bb78a08

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

template/_eslintrc.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ module.exports = {
33
extends: '@react-native-community',
44
parser: '@typescript-eslint/parser',
55
plugins: ['@typescript-eslint'],
6-
rules: {
7-
'no-shadow': 'off',
8-
'@typescript-eslint/no-shadow': ['error'],
9-
},
6+
overrides: [
7+
{
8+
files: ['*.ts', '*.tsx'],
9+
rules: {
10+
'@typescript-eslint/no-shadow': ['error'],
11+
'no-shadow': 'off',
12+
'no-undef': 'off',
13+
},
14+
},
15+
],
1016
};

0 commit comments

Comments
 (0)