-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
63 lines (60 loc) · 1.37 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
{
"parser" : "babel-eslint",
"plugins": [
"import",
"react",
"react-native",
],
"extends" : ["airbnb"],
"rules": {
"comma-dangle": 0,
"curly": 0,
"default-case": 0,
"new-cap": [2, {"capIsNew": false, "newIsCap": true}],
"no-console": [2, { allow: ["log", "error"] }],
"no-floating-decimal": 0,
"no-param-reassign": 0,
"no-shadow": 0,
"no-unused-expressions": 0,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": [2, "nofunc"],
"object-curly-spacing": [2, "never"],
"object-shorthand": 0,
"padded-blocks": 0,
// React
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react/sort-comp": 0, // Not ready yet
// JSX
"jsx-quotes": [2, "prefer-single"],
// Import
"import/no-unresolved": [2, {"commonjs": true, "amd": true}],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
},
"globals": {
"after": false,
"afterEach": false,
"before": false,
"beforeEach": false,
"describe": false,
"it": false,
"require": false
},
"settings": {
"import/ignore": [
"node_modules",
"\\.json$"
],
"import/parser": "babel-eslint",
"import/resolve": {
"extensions": [
".js",
".jsx",
".json"
]
}
}
}