1
1
eslintConfig:
2
2
root: true
3
-
4
3
ecmaFeatures:
5
4
modules: true
6
5
jsx: true
7
- arrowFunctions: true,
8
- blockBindings: true,
9
- classes: true,
10
- defaultParams: true,
11
-
6
+ arrowFunctions: true
7
+ blockBindings: true
8
+ classes: true
9
+ defaultParams: true
12
10
env:
13
11
amd: true
14
12
browser: true
17
15
node: true
18
16
jasmine: true
19
17
mocha: true
20
-
21
18
parserOptions:
22
19
sourceType: module
23
-
24
- # http://eslint.org/docs/rules/
25
20
rules:
26
- # Possible Errors
27
- comma-dangle: [0, never]
21
+ comma-dangle:
22
+ - 0
23
+ - never
28
24
no-cond-assign: 2
29
25
no-console: 0
30
26
no-constant-condition: 2
40
36
no-extra-parens: 0
41
37
no-extra-semi: 2
42
38
no-func-assign: 2
43
- no-inner-declarations: [2, functions]
39
+ no-inner-declarations:
40
+ - 2
41
+ - functions
44
42
no-invalid-regexp: 2
45
43
no-irregular-whitespace: 2
46
44
no-negated-in-lhs: 2
@@ -50,14 +48,17 @@ rules:
50
48
no-unexpected-multiline: 2
51
49
no-unreachable: 2
52
50
use-isnan: 2
53
- valid-jsdoc: [2, {requireParamDescription: false, requireReturn: false, requireReturnDescription: false}]
51
+ valid-jsdoc:
52
+ - 2
53
+ - requireParamDescription: false
54
+ requireReturn: false
55
+ requireReturnDescription: false
54
56
valid-typeof: 2
55
-
56
- # Best Practices
57
57
accessor-pairs: 2
58
58
block-scoped-var: 0
59
- # no even warning due to codeclimate shows it as error
60
- complexity: [0, 18]
59
+ complexity:
60
+ - 0
61
+ - 18
61
62
consistent-return: 0
62
63
curly: 2
63
64
default-case: 0
67
68
guard-for-in: 2
68
69
no-alert: 2
69
70
no-caller: 2
70
- # no even warning due to codeclimate shows it as error
71
71
no-case-declarations: 0
72
72
no-div-regex: 2
73
73
no-else-return: 0
85
85
no-iterator: 2
86
86
no-labels: 0
87
87
no-lone-blocks: 2
88
- # no even warning due to codeclimate shows it as error
89
88
no-loop-func: 0
90
89
no-magic-number: 0
91
90
no-multi-spaces: 0
@@ -103,25 +102,22 @@ rules:
103
102
no-self-compare: 2
104
103
no-sequences: 0
105
104
no-throw-literal: 0
106
- # no even warning due to codeclimate shows it as error
107
105
no-unused-expressions: 0
108
106
no-useless-call: 2
109
107
no-useless-concat: 2
110
108
no-void: 2
111
109
no-warning-comments: 0
112
110
no-with: 2
113
- # no even warning due to codeclimate shows it as error
114
- radix: [0, "always"]
111
+ radix:
112
+ - 0
113
+ - always
115
114
vars-on-top: 0
116
115
wrap-iife: 2
117
116
yoda: 0
118
-
119
- # Strict
120
- strict: [0, global]
121
-
122
- # Variables
117
+ strict:
118
+ - 0
119
+ - global
123
120
init-declarations: 0
124
- # no even warning due to codeclimate shows it as error
125
121
no-catch-shadow: 0
126
122
no-delete-var: 2
127
123
no-label-var: 2
@@ -130,11 +126,10 @@ rules:
130
126
no-undef-init: 2
131
127
no-undef: 2
132
128
no-undefined: 2
133
- no-unused-vars: [2, {args: "none"}]
129
+ no-unused-vars:
130
+ - 2
131
+ - args: none
134
132
no-use-before-define: 2
135
-
136
- # Node.js and CommonJS
137
- # no even warning due to codeclimate shows it as error
138
133
callback-return: 0
139
134
global-require: 0
140
135
handle-callback-err: 2
@@ -144,12 +139,12 @@ rules:
144
139
no-process-exit: 0
145
140
no-restricted-modules: 0
146
141
no-sync: 0
147
-
148
- # Stylistic Issues
149
142
array-bracket-spacing: 0
150
143
block-spacing: 0
151
144
brace-style: 0
152
- camelcase: [0, {properties: "never"}]
145
+ camelcase:
146
+ - 0
147
+ - properties: never
153
148
comma-spacing: 0
154
149
comma-style: 0
155
150
computed-property-spacing: 0
@@ -159,17 +154,30 @@ rules:
159
154
func-style: 0
160
155
id-length: 0
161
156
id-match: 0
162
- indent: [2, 2, { SwitchCase: 1 }]
157
+ indent:
158
+ - 2
159
+ - 2
160
+ - SwitchCase: 1
163
161
jsx-quotes: 0
164
162
key-spacing: 0
165
163
linebreak-style: 0
166
164
lines-around-comment: 0
167
- max-depth: [2, 7]
168
- max-len: [2, 120, 2, {ignoreComments: true}]
165
+ max-depth:
166
+ - 2
167
+ - 7
168
+ max-len:
169
+ - 2
170
+ - 120
171
+ - 2
172
+ - ignoreComments: true
169
173
max-nested-callbacks: 0
170
174
max-params: 0
171
- max-statements: [2, 50]
172
- new-cap: [2, {capIsNew: false}]
175
+ max-statements:
176
+ - 2
177
+ - 50
178
+ new-cap:
179
+ - 2
180
+ - capIsNew: false
173
181
new-parens: 0
174
182
newline-after-var: 0
175
183
no-array-constructor: 0
@@ -195,7 +203,10 @@ rules:
195
203
operator-linebreak: 0
196
204
padded-blocks: 0
197
205
quote-props: 0
198
- quotes: [2, single, {allowTemplateLiterals: true}]
206
+ quotes:
207
+ - 2
208
+ - single
209
+ - allowTemplateLiterals: true
199
210
require-jsdoc: 2
200
211
semi-spacing: 0
201
212
semi: 0
@@ -210,8 +221,6 @@ rules:
210
221
space-unary-ops: 0
211
222
spaced-comment: 0
212
223
wrap-regex: 0
213
-
214
- # ECMAScript 6
215
224
arrow-body-style: 0
216
225
arrow-parens: 0
217
226
arrow-spacing: 0
@@ -230,7 +239,7 @@ rules:
230
239
prefer-spread: 0
231
240
prefer-template: 0
232
241
require-yield: 0
233
-
234
242
globals:
235
243
DeepFramework: true
236
- angular: true
244
+ Stripe: true
245
+ angular: true
0 commit comments