-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
74 lines (72 loc) · 2.11 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
{
"extends": [
"prettier"
],
"rules": {
"no-alert": 1,
"no-shadow": 0,
"quote-props": 0,
"no-debugger": 1,
"comma-dangle": 1,
"react/jsx-key": 2,
"global-require": 0,
"spaced-comment": 0,
"linebreak-style": 0,
"semi": [2, "always"],
"react/prop-types": 0,
"arrow-body-style": 1,
"consistent-return": 0,
"no-underscore-dangle": 0,
"max-len": ["error", 120],
"object-curly-spacing": 0,
"react/jsx-indent": [1, 2],
"react/no-find-dom-node": 0,
"react/forbid-prop-types": 0,
"react/no-array-index-key": 0,
"react/no-unused-prop-types": 1,
"eol-last": ["error", "always"],
"react/jsx-indent-props": [1, 2],
"react/require-default-props": 0,
"react/jsx-filename-extension": 0,
"jsx-quotes": [1, "prefer-single"],
"react/prefer-stateless-function": 1,
"react/jsx-boolean-value": [2, "always"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-console": [1, {"allow": ["warn", "error"]}],
"react/jsx-first-prop-new-line": [2, "multiline"],
"eslint linebreak-style": [0, "error", "windows"],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"react/jsx-closing-bracket-location": [2, {"selfClosing": "after-props", "nonEmpty": "tag-aligned"}],
"import/first": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/no-named-default": 0,
"import/no-named-as-default": 0,
"import/newline-after-import": 1,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/lang": 0,
"no-case-declarations": 0,
"jsx-a11y/label-has-for": 0,
"no-return-assign": [0, "except-parens"],
"jsx-a11y/no-static-element-interactions": 0
},
"plugins": [
"react",
"import"
],
"settings": {
"import/resolve": {
"moduleDirectory": ["node_modules"]
},
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
},
"globals": {
"window": true,
"document": true
}
}