-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
73 lines (73 loc) · 1.84 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
63
64
65
66
67
68
69
70
71
72
73
{
"parser" : "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["airbnb", "prettier"],
"plugins": ["import", "react", "prettier", "react-native"],
"rules": {
"prettier/prettier": "error",
// Soft some rules.
"new-cap": [2, {"capIsNew": false, "newIsCap": true}], // For Record() etc.
// eslint-plugin-import
"import/no-unresolved": [2, {"commonjs": true}],
"import/no-extraneous-dependencies": 0,
"import/named": 2,
"import/default": 2,
"import/namespace": 2,
"import/export": 2,
"react/no-unused-prop-types": 0,
"react/jsx-one-expression-per-line": "off",
"react/jsx-filename-extension": [
"error",
{ "extensions": [".js", ".jsx"] }
]
},
"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",
".ios.js",
".android.js",
".web.js",
".jsx",
".json"
]
},
"import/resolver": {
"node": {
"extensions": [
".js",
".ios.js",
".android.js",
".web.js",
".jsx",
".json"
]
}
}
}
}