Update ESLint config (#242)

This commit is contained in:
Frieder Bluemle authored and GitHub committed 2022-01-11 20:08:16 +01:00
1 parent acff43ce87
commit bb78a08cb0
1 file changed
+10 -4
+10 -4
View File
@@ -3,8 +3,14 @@ module.exports = {
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
},
},
],
};