-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.js
32 lines (29 loc) · 1.04 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["@react-native-community", "plugin:@typescript-eslint/recommended", "prettier"],
plugins: ["import", "@typescript-eslint"],
settings: {
"import/resolver": {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
},
},
rules: {
"no-param-reassign": ["error", { props: true }],
"no-debugger": "error",
"no-redeclare": "error",
"no-unused-vars": "error",
"no-nested-ternary": "error",
"no-extra-boolean-cast": 0,
"import/no-unresolved": "error",
"import/default": "error",
"import/no-self-import": "error",
"import/no-unused-modules": "error",
"import/no-duplicates": "error",
"import/first": "warn",
"react-hooks/exhaustive-deps": "warn",
"react-native/no-inline-styles": "off",
"react/no-did-mount-set-state": "warn",
"react/jsx-curly-brace-presence": "error",
"prettier/prettier": "error",
},
};