-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
37 lines (37 loc) · 1.41 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
{
"parser" : "babel-eslint",
"extends": ["react-app", "plugin:jsx-a11y/recommended"],
"plugins": ["jsx-a11y"],
"env" : {
"browser" : true
},
"globals" : {
"__DEV__" : false,
"__PROD__" : false,
"__DEBUG__" : false,
"__COVERAGE__" : false,
"__BASENAME__" : false
},
"rules": {
"semi" : ["error", "never"],
"quotes": ["error", "double"],
"max-len": [2, 1240, 2],
"indent": [2, 2],
"comma-spacing": ["error", { "before": false, "after": true }],
"space-infix-ops": ["error"],
"space-in-parens": ["error", "never"],
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"space-before-function-paren": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-trailing-spaces": ["error"],
"no-multiple-empty-lines": ["error", {"max": 1}],
"click-events-have-key-events": 0,
"react/jsx-closing-bracket-location": [1, {"selfClosing": "line-aligned", "nonEmpty": "after-props"}],
"react/jsx-max-props-per-line": [1, { "maximum": 3, "when": "always"}],
"react/jsx-curly-spacing": [1, {"when": "never"}],
"jsx-a11y/label-has-for": [0, {}],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0
}
}