-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
41 lines (41 loc) · 956 Bytes
/
.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
33
34
35
36
37
38
39
40
41
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"ecmaFeatures": {
"classes": true,
"jsx": true,
},
"plugins": [
"react",
"jsx-a11y",
"import",
"react-native",
"jest",
],
"env": {
"jest/globals": true,
},
"rules": {
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"no-use-before-define": 0,
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".android.js",
".ios.js"
]
}
}
},
};