-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc
62 lines (62 loc) · 1.45 KB
/
.eslintrc
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"parser": "babel-eslint",
"extends": ["airbnb", "plugin:react/recommended", "prettier", "prettier/react"],
"env": {
"es6": true
},
"globals": {
"__DEV__": true,
"performance": true
},
"plugins": ["babel", "import", "react", "react-native", "prettier", "detox"],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".android.js", ".ios.js"]
}
}
},
"rules": {
"import/prefer-default-export": "off",
"react/jsx-filename-extension": "off",
"react/no-array-index-key": "off",
"react/no-typos": "off",
"react/prefer-stateless-function": [
"error",
{
"ignorePureComponents": true
}
],
"react/require-default-props": "off",
"no-case-declarations": "off",
"no-confusing-arrow": "off",
"no-console": [
"error",
{
"allow": ["debug", "error", "warn"]
}
],
"no-underscore-dangle": "off",
"no-nested-ternary": "off",
"react/default-props-match-prop-types": "off",
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "error",
"react-native/no-color-literals": "warn",
"no-plusplus": "off",
"prettier/prettier": [
"error",
{
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
]
}
}