Compare commits

..
2 Commits
Author SHA1 Message Date
Frieder Bluemle bb78a08cb0 Update ESLint config (#242) 2022-01-11 20:08:16 +01:00
Frieder Bluemle acff43ce87 Fix ESLint setup (#240) 2021-12-16 11:58:25 +01:00
2 changed files with 14 additions and 4 deletions

No files matched your search

+12 -4
View File
@@ -1,8 +1,16 @@
module.exports = {
root: true,
extends: '@react-native-community',
rules: {
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
},
},
],
};
+2
View File
@@ -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",