forked from inpercima/run-and-fun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
121 lines (121 loc) · 3.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"globals": {
"angular": true,
"_": true
},
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
"array-callback-return": ["error"],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", {
"after": true,
"before": true
}],
"brace-style": ["error", "1tbs"],
"camelcase": ["error", {
"properties": "always"
}],
"comma-dangle": ["error", "always-multiline"],
"comma-style": ["error", "first", {
"exceptions": {
"ArrayExpression": true,
"ObjectExpression": true
}
}],
"computed-property-spacing": ["error", "never"],
"dot-notation": ["error", {
"allowKeywords": false
}],
"eqeqeq": ["error", "always"],
"func-style": ["error", "declaration"],
"generator-star-spacing": ["error", {
"after": true,
"before": false
}],
"global-require": ["error"],
"id-length": ["warn", {
"min": 2
}],
"indent": ["error", 2],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"new-cap": ["error"],
"max-len": ["error", 120],
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"no-alert": ["error"],
"no-array-constructor": ["error"],
"no-case-declarations": ["error"],
"no-confusing-arrow": ["error", {
"allowParens": false
}],
"no-console": ["error"],
"no-const-assign": ["error"],
"no-debugger": ["error"],
"no-dupe-class-members": ["error"],
"no-duplicate-imports": ["error", {
"includeExports": true
}],
"no-iterator": ["error"],
"no-loop-func": ["error"],
"no-nested-ternary": ["warn"],
"no-new-func": ["error"],
"no-new-object": ["error"],
"no-param-reassign": ["error", {
"props": false
}],
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true
}],
"no-restricted-syntax": ["error"],
"no-undef": ["error", {
"typeof": true
}],
"no-underscore-dangle": ["error", {
"allowAfterSuper": false,
"allowAfterThis": false
}],
"no-unneeded-ternary": ["error", {
"defaultAssignment": false
}],
"no-useless-concat": ["error"],
"no-useless-constructor": ["error"],
"no-useless-escape": ["error"],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "always"],
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": ["error", {
"allowNamedFunctions": true
}],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}],
"prefer-rest-params": ["warn"],
"prefer-spread": ["error"],
"prefer-template": ["error"],
"quote-props": ["error", "as-needed", {
"unnecessary": true
}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error", {
"int32Hint": false
}],
"template-curly-spacing": ["error", "never"],
"wrap-iife": ["error", "inside"]
}
}