-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
90 lines (89 loc) · 2.34 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"extends": [
"airbnb",
"plugin:import/warnings",
"plugin:import/errors"
],
"rules": {
"max-len":[2, {"code": 120}],
"jsx-a11y/anchor-has-content": "off",
"jsx-quotes": ["error", "prefer-single"],
"prefer-rest-params": 0,
"no-underscore-dangle": 0,
"class-methods-use-this": 0,
"indent": [2, 2],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/no-multi-comp": 0,
"react/prefer-stateless-function": 0,
"import/no-unresolved": [2, {commonjs: true, amd: true}],
"import/no-extraneous-dependencies": 1,
"import/extensions": 0,
"import/named": 0,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"import/no-duplicates": 2,
"import/prefer-default-export": 0,
"no-console": [
"warn",
{
"allow": ["warn", "error", "info"]
}
],
// ES6 rules.
"arrow-spacing": 2,
"computed-property-spacing": 2,
"constructor-super": 2,
"no-const-assign": 2,
"no-this-before-super": 2,
"no-var": 2,
"prefer-const": 2,
"prefer-spread": 2,
"react/sort-comp": [2, {
"order": [
"type-annotations",
"constructor",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}]
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"destructuring": true,
"experimentalObjectRestSpread": true,
"forOf": true,
"jsx": true,
"restParams": true,
"spread": true,
"templateStrings": true
},
"plugins": [
"react",
"import"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"globals": {
"document": false
},
"settings": {
"ecmascript": 6,
"jsx": true,
"import/resolver": {
"webpack": {
"config": "webpack.config.js",
"config-index": 0
}
}
},
}