Skip to content

Commit

Permalink
Fix ESLint setup
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Dec 16, 2021
1 parent f62bcec commit 55f9da4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions template/_eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
},
};
2 changes: 2 additions & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"@types/jest": "^26.0.23",
"@types/react-native": "^0.66.4",
"@types/react-test-renderer": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"babel-jest": "^26.6.3",
"eslint": "^7.14.0",
"jest": "^26.6.3",
Expand Down

0 comments on commit 55f9da4

Please sign in to comment.