-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
45 lines (45 loc) · 1.6 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
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"plugins": [
"react"
],
"rules": {
"space-in-parens": [ 1, "never" ],
"object-curly-spacing": [1, "always"],
"computed-property-spacing": [1, "never"],
"block-spacing": [1, "always"],
"comma-spacing": 1,
"func-call-spacing": [1, "never"],
"array-bracket-spacing": [ 1, "always" ],
"key-spacing": [1, { "beforeColon": false }],
"keyword-spacing": [1, { "before": true }],
"semi-spacing": [1, {"before": false, "after": true}],
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "never"],
"switch-colon-spacing": [1, {"after": false, "before": true}],
"spaced-comment": [1, "always"],
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"space-infix-ops": 1,
"no-multiple-empty-lines": [ 1, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],
"quotes": [ 1, "single", "avoid-escape" ],
"no-use-before-define": [ 1, { "functions": false } ],
"semi": [0, "never"],
"prefer-const": 1,
"react/prefer-es6-class": 0,
"react/jsx-filename-extension": 0,
"react/jsx-curly-spacing": [ 1, "always" ],
"react/jsx-indent": [ 1, 4 ],
"react/prop-types": [ 1 ],
"react/no-array-index-key": [ 1 ],
"no-undef": [ 1 ],
"no-case-declarations": [ 1 ],
"no-return-assign": [ 1 ],
"no-param-reassign": [ 1 ],
"no-unused-vars": [ 1 ],
"no-shadow": [ 1 ],
"camelcase": [ 1 ],
"no-underscore-dangle": [0, "always"],
"no-console": [ 1 ],
}
}