-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
160 lines (142 loc) · 4.06 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"rules": {
"no-new-wrappers": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-array-constructor": 2,
"no-console": 0,
"no-alert": 1,
"no-eval": 2,
"no-implied-eval": 1,
"no-fallthrough": 2,
"no-undef-init": 1,
"no-undefined": 1,
"no-void": 2,
"no-continue": 2,
"no-with": 2,
"no-restricted-syntax": [2, "WithStatement"],
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"array-bracket-spacing": [1, "never"],
"block-spacing": [1, "always"],
"keyword-spacing": 1,
"space-infix-ops": 1,
"semi-spacing": [1, {"before": false, "after": true}],
"comma-spacing": [1, {"before": false, "after": true}],
"key-spacing": [0, {"beforeColon": false, "afterColon": true}],
"no-spaced-func": 1,
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "never"],
"template-curly-spacing": 1,
"arrow-spacing": 1,
"use-isnan": 2,
"no-mixed-operators": 2,
"no-bitwise": 2,
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
"no-nested-ternary": 1,
"eqeqeq": 2,
"no-unneeded-ternary": 1,
"no-invalid-regexp": 2,
"new-cap": [2, {"capIsNew": false, "newIsCap": true}],
"no-else-return": 1,
"no-lonely-if": 2,
"no-negated-condition": 1,
"no-cond-assign": [2, "always"],
"default-case": 0,
"no-self-compare": 2,
"no-extra-boolean-cast": 1,
"indent": [1, 4, { "SwitchCase": 1}],
"linebreak-style": [2, "unix"],
"operator-linebreak": [1, "after", { "overrides": { "?": "before", ":": "before" } }],
"quotes": [0, "single"],
"quote-props": [1, "consistent-as-needed"],
"semi": [2, "always"],
"no-extra-semi": 1,
"comma-style": [2, "last"],
"comma-dangle": [1, "only-multiline"],
"newline-per-chained-call": 1,
"no-duplicate-case": 2,
"no-dupe-keys": 2,
"no-dupe-args": 2,
"no-dupe-class-members": 2,
"prefer-arrow-callback": 1,
"arrow-parens": [1, "always"],
"arrow-body-style": 0,
"no-confusing-arrow": 1,
"no-warning-comments": [1, {
"terms": ["todo", "hack", "fixme", "evil"],
"location": "start"
}],
"no-inline-comments": 0,
"no-unexpected-multiline": 2,
"no-useless-concat": 1,
"no-path-concat": 2,
"prefer-template": 1,
"no-obj-calls": 2,
"no-var": 1,
"prefer-const": 1,
"no-const-assign": 2,
"no-unused-vars": 1,
"object-shorthand": 1,
"max-params": [1, 4],
"func-style": [1, "declaration", { "allowArrowFunctions": true }],
"no-loop-func": 2,
"no-param-reassign": 1,
"wrap-iife": [1, "outside"],
"array-callback-return": 1,
"no-shadow": 1,
"consistent-this": [2, "self"],
"no-useless-call": 1,
"no-sequences": 2,
"no-shadow-restricted-names": 1,
"no-use-before-define": [2, "nofunc"],
"max-len": [1, 100, 2, {"ignoreUrls": true}],
"one-var": [2, "never"],
"eol-last": 1,
"no-empty-character-class": 2,
"no-empty": 1,
"no-extra-parens": 0,
"valid-typeof": 2,
"max-lines": [1, { "max": 300, "skipComments": true, "skipBlankLines": true }],
"prefer-spread": 1,
"no-useless-constructor": 2,
"import/imports-first": 2,
"promise/catch-or-return": "error",
"promise/no-nesting": "warn",
"promise/always-return": "error"
},
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": [
"eslint:recommended"
],
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"experimentalDecorators": true,
"generators": true,
"arrowFunctions": true,
"defaultParams": true,
"spread": true,
"restParams": true,
"blockBindings": true,
"templateStrings": true,
"destructuring": true,
"forOf": true,
"regexUFlag": true,
"regexYFlag": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralDuplicateProperties": true,
"classes": true
},
"plugins": [
"react",
"import",
"promise"
]
}