-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
69 lines (69 loc) · 2.31 KB
/
.eslintrc.json
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
{
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"array-bracket-spacing": [2, "never"],
"arrow-parens": [2, "always"],
"arrow-spacing": [2, { "before": true, "after": true }],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [2, { "properties": "always" }],
"comma-spacing": [2, { "before": false, "after": true }],
"computed-property-spacing": [2, "never"],
"constructor-super": [2],
"func-style": [2, "expression", { "allowArrowFunctions": true }],
"generator-star-spacing": [2, { "before": false, "after": true }],
"indent": [2, 2],
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, { "before": true, "after": true }],
"linebreak-style": [2, "unix"],
"max-len": [2, 120, 2],
"no-array-constructor": [2],
"no-bitwise": [2],
"no-class-assign": [2],
"no-const-assign": [2],
"no-const-assign": [2],
"no-constant-condition": [2],
"no-dupe-class-members": [2],
"no-lonely-if": [2],
"no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1 }],
"no-negated-condition": [2],
"no-nested-ternary": [2],
"no-new-object": [2],
"no-plusplus": [2],
"no-restricted-syntax": [2, "WithStatement"],
"no-spaced-func": [2],
"no-this-before-super": [2],
"no-trailing-spaces": [2],
"no-unused-vars": [2, { "vars": "all", "args": "after-used", "varsIgnorePattern": "React" }],
"no-var": [2],
"object-curly-spacing": [2, "always"],
"object-shorthand": [2],
"one-var": [2, "never"],
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "after"],
"padded-blocks": [2, "never"],
"prefer-arrow-callback": [2],
"prefer-const": [2],
"prefer-spread": [2],
"prefer-template": [2],
"quote-props": [2, "as-needed"],
"quotes": [2, "double"],
"require-yield": [2],
"semi": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-unary-ops": [2, { "words": true, "nonwords": false }]
}
}