-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
88 lines (87 loc) · 2.97 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
77
78
79
80
81
82
83
84
85
86
87
88
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true
},
"globals": {
"it": true,
"describe": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"comma-dangle": 0,
"dot-location": [2, "property"],
"dot-notation": 2,
"eqeqeq": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-floating-decimal": 2,
// "no-loop-func": 2,
// "no-magic-numbers": [2, {"ignoreArrayIndexes": true }],
"no-new": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-process-env": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unmodified-loop-condition": 2,
"no-unused-expressions": 1,
"no-unused-vars": 1,
"no-useless-call": 2,
"no-useless-concat": 2,
"no-void": 2,
"wrap-iife": 2,
// "yoda": 2,
// "no-shadow-restricted-names ": 2,
"callback-return": 2,
"no-new-require": 2,
"no-path-concat": 2,
"no-sync": 2,
"array-bracket-spacing": [2, "never", { "objectsInArrays": true, "arraysInArrays": true }],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
// "camelcase": [2, { "properties": "always" }],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"consistent-this": [2, "self"],
// "indent": [2, "tab", { "SwitchCase": 1 }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
"keyword-spacing": 2,
"lines-around-comment": 2,
// "new-cap": 2,
"new-parens": 2,
"newline-after-var": [2, "always"],
"no-multiple-empty-lines": [2, {"max": 2}],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"no-unneeded-ternary": 2,
"no-whitespace-before-property": 2,
"object-curly-spacing": [2, "always"],
"one-var-declaration-per-line": [2, "always"],
"quote-props": [2, "as-needed"],
"semi": [2, "always", { "omitLastInOneLineBlock": true}],
"semi-spacing": [2, {"before": false, "after": true}],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always"],
"arrow-body-style": [2, "as-needed"],
// "arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, { "before": true, "after": true }],
"no-useless-constructor": 2,
"no-var": 2,
// "prefer-const": 1,
// "prefer-template": 1,
// "template-curly-spacing": [2, "always"]
}
}