-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc
76 lines (76 loc) · 3.22 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
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": ["warn", "never"],
"array-element-newline": ["warn", "consistent"],
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": ["warn", { "before": true, "after": true }],
"block-spacing": ["warn", "always"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"camelcase": ["warn", { "properties": "always" }],
"comma-dangle": ["warn", "never"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"comma-style": ["warn", "last"],
"computed-property-spacing": ["warn", "never"],
"curly": "warn",
"dot-notation": ["warn", { "allowKeywords": true, "allowPattern": "^[a-z]+(_[a-z]+)+$" }],
"eol-last": ["warn", "always"],
"eqeqeq": ["warn", "smart"],
"func-call-spacing": ["warn", "never"],
"function-call-argument-newline": ["warn", "consistent"],
"function-paren-newline": ["warn", "consistent"],
"implicit-arrow-linebreak": ["warn", "beside"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"lines-between-class-members": ["warn", "always"],
"max-len": ["warn", { "code": 120 }],
"new-parens": ["warn", "always"],
"no-dupe-else-if": "warn",
"no-else-return": ["warn", { "allowElseIf": true }],
"no-lonely-if": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": ["warn", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
"no-trailing-spaces": ["warn", { "skipBlankLines": false, "ignoreComments": false }],
"no-unneeded-ternary": "warn",
"no-useless-return": "warn",
"no-var": "warn",
"no-whitespace-before-property": "warn",
"no-control-regex": "off",
"nonblock-statement-body-position": ["warn", "beside"],
"object-curly-newline": ["warn", { "consistent": true }],
"object-curly-spacing": ["warn", "always", { "objectsInObjects": true }],
"object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }],
"operator-assignment": "warn",
"operator-linebreak": ["warn", "after"],
"padded-blocks": ["warn", "never"],
"padding-line-between-statements": ["warn", { "blankLine": "always", "prev": "*", "next": "return" }],
"prefer-const": "warn",
"quote-props": ["warn", "as-needed"],
"quotes": ["warn", "single"],
"rest-spread-spacing": ["warn", "never"],
"semi": ["warn", "always"],
"semi-spacing": ["warn", { "before": false, "after": true }],
"semi-style": ["warn", "last"],
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", { "named": "never" }],
"space-in-parens": ["warn", "never"],
"space-infix-ops": "warn",
"space-unary-ops": ["warn", { "words": true, "nonwords": false }],
"spaced-comment": "warn",
"strict": "warn",
"switch-colon-spacing": ["warn", { "after": true, "before": false }],
"yoda": ["warn", "never"]
}
}