forked from konstanto/polled.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
58 lines (57 loc) · 1.68 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
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": [
"react"
],
"rules": {
"no-console": 0,
"no-debugger": 2,
"no-dupe-args": 2,
"no-empty": 1,
"no-extra-semi": 1,
"valid-typeof": 2,
"no-new-func": 1,
"no-unused-vars": 1,
"array-bracket-spacing": [1, "never"],
"camelcase": [2, {"properties": "always"}],
"comma-spacing": [1, {"before": false, "after": true}],
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3}}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"new-cap": 2,
"newline-after-var": [1, "always"],
"no-mixed-spaces-and-tabs": 1,
"no-whitespace-before-property": 1,
"no-trailing-spaces": 1,
"object-curly-spacing": [2, "always"],
"padded-blocks": [2, "never"],
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "never"],
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "always"],
"no-var": 2,
"prefer-spread": 1,
"prefer-template": 1,
"react/display-name": 1,
"react/forbid-prop-types": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-deprecated": 1,
"react/no-direct-mutation-state": 1,
"react/no-is-mounted": 1,
"react/no-multi-comp": 1,
"react/no-set-state": 1,
"react/no-string-refs": 1,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prop-types": [1, { ignore: ['children', 'dispatch'] }],
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 0,
"react/jsx-wrap-multilines": 1
}
}