-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.01 KB
/
.eslintrc.json
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
33
34
35
36
37
38
39
40
41
42
43
44
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"parser": "babel-eslint",
"plugins": ["react", "react-native", "import"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"react/no-unescaped-entities": [0],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react-native/no-unused-styles": 2,
"react/prop-types": [2, { "skipUndeclared": true }],
"import/no-unresolved": 2,
"import/named": 2,
"import/namespace": 2,
"import/default": 2
},
"settings": {
"import/core-modules": ["expo"],
"import/resolver": {
"node": {
"moduleDirectory": [".", "node_modules"]
}
}
}
}