Skip to content

Commit acff43c

Browse files
Fix ESLint setup (#240)
1 parent f62bcec commit acff43c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

template/_eslintrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
module.exports = {
22
root: true,
33
extends: '@react-native-community',
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
46
rules: {
5-
"no-shadow": "off",
6-
"@typescript-eslint/no-shadow": ["error"],
7+
'no-shadow': 'off',
8+
'@typescript-eslint/no-shadow': ['error'],
79
},
810
};

template/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"@types/jest": "^26.0.23",
2121
"@types/react-native": "^0.66.4",
2222
"@types/react-test-renderer": "^17.0.1",
23+
"@typescript-eslint/eslint-plugin": "^5.7.0",
24+
"@typescript-eslint/parser": "^5.7.0",
2325
"babel-jest": "^26.6.3",
2426
"eslint": "^7.14.0",
2527
"jest": "^26.6.3",

0 commit comments

Comments
 (0)