-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.05 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
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
"env": {
"browser": true,
"react-native/react-native": true,
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"overrides": [
{
"env": {
"node": true,
"jest/globals": true,
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"react-native",
"jest"
],
"rules": {
// "react/prop-types": ["error", { "ignore": ["navigation", "route"] }],
"react/prop-types": 0,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react-native/no-raw-text": 2,
}
}