-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
163 lines (162 loc) · 4.02 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*
# Airbnb is putting everything on error which makes it hard to spot JavaScript errors: https://github.com/airbnb/javascript/issues/853
# Work-around, move everything from error to warn:
find node_modules/eslint-config-airbnb -name '*.js'|xargs sed -i 's/\[2,/\[1,/'
find node_modules/eslint-config-airbnb -name '*.js'|xargs sed -i "s/': 2/': 1/"
*/
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"max-len": 0,
/*[1, 160, 4],*/
"comma-dangle": 0,
"semi": [
2
],
"curly": [
1
],
"one-var": [
0
],
"eqeqeq": 0,
"no-cond-assign": 0,
"react/wrap-multilines": [
0
],
"one-var-declaration-per-line": [
0
],
"no-param-reassign": [
0
],
"no-nested-ternary": [
0
],
"import/no-dynamic-require": 1,
"global-require": 1,
"prefer-destructuring": 0,
"react/no-unused-state": 1,
"no-unused-expressions": 1,
"react/no-string-refs": 1,
"no-restricted-syntax": 0,
"no-undef": 2,
"no-case-declarations": 0,
"no-underscore-dangle": 0,
"no-inner-declarations": 1,
"camelcase": [
0
],
"no-console": [
0
],
"padded-blocks": 0,
"object-curly-spacing": [
0
],
"class-methods-use-this": 0,
"react/no-array-index-key": 1,
"react/no-find-dom-node": 1,
"react/jsx-props-no-spreading": 1,
"react/static-property-placement": 1,
"react/forbid-prop-types": 1,
"react/require-default-props": 1,
"react/destructuring-assignment": 0,
"react/jsx-indent": [
1,
4
],
"react/jsx-indent-props": [
1,
4
],
"react/jsx-closing-bracket-location": [
0
],
"jsx-a11y/no-noninteractive-element-interactions": 1,
"jsx-a11y/accessible-emoji": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-associated-control": 0,
"consistent-return": 1,
"no-use-before-define": [
0,
{
"functions": false,
"classes": false
}
],
"spaced-comment": [
0
],
"prefer-template": [
0
],
"new-cap": [
0
],
"arrow-body-style": [
0
],
"func-names": [
0
],
"no-return-assign": 0,
"no-redeclare": 1,
"eol-last": 0,
"no-loop-func": 0,
"no-unneeded-ternary": 0,
// false trigger const b = b ? b : a
/* Nice to haves */
/*"quotes": [1, "single", "avoid-escape"],*/
"quotes": 0,
/*"indent", [1,4], */
"indent": 0,
"brace-style": 0,
"space-infix-ops": 0,
"keyword-spacing": 0,
"no-confusing-arrow": 0,
"space-in-parens": 0,
"no-throw-literal": 0,
"react/sort-comp": [
1,
{
"order": [
"lifecycle"
]
}
],
"react/prefer-stateless-function": 0,
"react/prop-types": 0,
"radix": 0,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": [
"warn",
{
"aspects": [
"invalidHref"
]
}
],
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/extensions": 0
},
"overrides": [
{
"files": [
"**/*.test.js",
"**/*.test.jsx"
],
"env": {
"jest": true
}
}
]
}