-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
104 lines (102 loc) · 3.23 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"root": true,
"rules": {
"indent": [
2,
4
],
"quotes": [
2,
"single"
],
"linebreak-style": [
2,
"unix"
],
"semi": [
2,
"always"
],
"no-console": 0,
"block-scoped-var": "error",
"complexity": [
2,
4
],
"curly": "error",
"eqeqeq": "error",
"no-eval": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-loop-func": "error",
"no-magic-numbers": ["error", { "ignore": [0, 1, 2] }],
"no-multi-spaces": "error",
"no-new": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"radix": "error",
"vars-on-top": "error",
"wrap-iife": ["error", "inside"],
"yoda": "error",
"init-declarations": "error",
"no-shadow": "error",
"no-undef-init": "error",
"no-use-before-define": "error",
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-style": ["error", "declaration"],
"key-spacing": "error",
"keyword-spacing": "error",
"max-depth": ["error", 2],
"max-len": ["error", {"code": 80, "tabWidth": 4, "ignoreUrls": true}],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 3],
"max-statements": ["error", 20, {"ignoreTopLevelFunctions": true}],
"max-statements-per-line": ["error", { "max": 1 }],
"new-cap": "error",
"new-parens": "error",
"no-bitwise": "error",
"no-continue": "error",
"no-lonely-if": "error",
"no-mixed-spaces-and-tabs": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-underscore-dangle": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": "error",
"one-var": ["error", "never"],
"operator-linebreak": ["error", "after"],
"quote-props": ["error", "as-needed"],
"semi-spacing": "error",
"sort-imports": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
sourceType: "module"
},
"extends": "eslint:recommended"
}