-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
75 lines (75 loc) · 1.81 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
{
"parserOptions": {
"ecmaVersion": 6,
"es6": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"globals": {
"describe": true,
"beforeEach": true,
"afterEach": true,
"it": true
},
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-debugger": 2,
"no-console": 2,
"no-alert": 2,
"no-constant-condition": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"eqeqeq": 2,
"no-eval": 2,
"no-loop-func": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-with": 2,
"new-cap": 0,
"strict": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-case-declarations": 0,
"eol-last": 0,
"quotes": [2, "single"],
"object-curly-spacing": ["error", "always"],
# "object-curly-newline": ["error", "always"],
"jsx-quotes": [1, "prefer-single"],
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-multi-comp": 2,
"react/prefer-stateless-function": 2,
"react/prefer-es6-class": 2,
"react/jsx-pascal-case": 2,
"react/jsx-closing-bracket-location": [2, "tag-aligned"],
"react/jsx-closing-tag-location": 2,
"react/jsx-tag-spacing": 2,
"no-multi-spaces": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-boolean-value": 2,
"react/no-string-refs": 2,
"react/jsx-wrap-multilines": 2,
"react/self-closing-comp": 2,
"react/jsx-no-bind": 2,
"react/require-render-return": 2,
"max-len": ["error", 100],
"semi": ["error", "never"],
"array-bracket-spacing": ["error", "always", { "objectsInArrays": false }]
}
}