-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.eslintrc
38 lines (35 loc) · 921 Bytes
/
.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
{
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"arrow-body-style": 0,
"prefer-arrow-callback": 0,
"func-names": 0,
"eqeqeq": 1,
"no-unused-vars": 1,
"react/jsx-no-bind": 1,
"react/jsx-uses-react": 1,
"react/prefer-stateless-function": 0,
// indentation
"indent": [ 2, 2 ],
"max-len": [1, 100],
// comment
'spaced-comment': ['warn', 'always', {
exceptions: ['-', '+','todo'],
markers: ['=', '!'] // space here to support sprockets directives
}],
"no-use-before-define": [ 2, { "functions": false } ],
"jsx-a11y/no-static-element-interactions": 0,
import/no-unresolved: [2, { ignore: ['\.'] }],
import/extensions: [2, { "": "never" }],
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
}
}