node-pluginsmanager-plugin 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +296 -296
- package/.travis.yml +8 -8
- package/LICENSE +13 -13
- package/README.md +165 -165
- package/lib/index.d.ts +50 -50
- package/lib/isDirectory.js +34 -34
- package/lib/isFile.js +34 -34
- package/lib/main.js +218 -218
- package/lib/readJSONFile.js +32 -32
- package/package.json +57 -57
- package/test/0_compilation_typescript.js +38 -38
- package/test/1_1_isFile.js +87 -87
- package/test/1_2_isDirectory.js +87 -87
- package/test/1_3_readJSONFile.js +88 -88
- package/test/2_plugin.js +231 -231
- package/test/typescript/compilation.ts +15 -15
package/.eslintrc.js
CHANGED
|
@@ -1,296 +1,296 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"extends": "eslint:recommended",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"ecmaVersion": 2018
|
|
5
|
-
},
|
|
6
|
-
"env": {
|
|
7
|
-
"es6": true,
|
|
8
|
-
"mocha": true,
|
|
9
|
-
"node": true
|
|
10
|
-
},
|
|
11
|
-
"globals": {
|
|
12
|
-
"after": true,
|
|
13
|
-
"afterEach": true,
|
|
14
|
-
"angular": true,
|
|
15
|
-
"before": true,
|
|
16
|
-
"beforeEach": true,
|
|
17
|
-
"Buffer": true,
|
|
18
|
-
"console": true,
|
|
19
|
-
"clearInterval": true,
|
|
20
|
-
"clearTimeout": true,
|
|
21
|
-
"describe": true,
|
|
22
|
-
"it": true,
|
|
23
|
-
"jQuery": true,
|
|
24
|
-
"Promise": true,
|
|
25
|
-
"Map": true,
|
|
26
|
-
"module": true,
|
|
27
|
-
"os": true,
|
|
28
|
-
"process": true,
|
|
29
|
-
"require": true,
|
|
30
|
-
"setImmediate": true,
|
|
31
|
-
"setInterval": true,
|
|
32
|
-
"setTimeout": true,
|
|
33
|
-
"__dirname": true,
|
|
34
|
-
"__filename": true
|
|
35
|
-
},
|
|
36
|
-
"rules": {
|
|
37
|
-
"for-direction": "error",
|
|
38
|
-
"getter-return": "error",
|
|
39
|
-
"no-await-in-loop": "error",
|
|
40
|
-
"no-compare-neg-zero": "error",
|
|
41
|
-
"no-cond-assign": "error",
|
|
42
|
-
"no-console": "error",
|
|
43
|
-
"no-constant-condition": "error",
|
|
44
|
-
"no-control-regex": "error",
|
|
45
|
-
"no-debugger": "error",
|
|
46
|
-
"no-dupe-args": "error",
|
|
47
|
-
"no-dupe-keys": "error",
|
|
48
|
-
"no-duplicate-case": "error",
|
|
49
|
-
"no-empty": "error",
|
|
50
|
-
"no-empty-character-class": "error",
|
|
51
|
-
"no-ex-assign": "error",
|
|
52
|
-
"no-extra-boolean-cast": "error",
|
|
53
|
-
"no-extra-parens": "error",
|
|
54
|
-
"no-extra-semi": "error",
|
|
55
|
-
"no-func-assign": "error",
|
|
56
|
-
"no-inner-declarations": "error",
|
|
57
|
-
"no-invalid-regexp": "error",
|
|
58
|
-
"no-irregular-whitespace": "error",
|
|
59
|
-
"no-obj-calls": "error",
|
|
60
|
-
"no-prototype-builtins": "error",
|
|
61
|
-
"no-regex-spaces": "error",
|
|
62
|
-
"no-sparse-arrays": "error",
|
|
63
|
-
"no-template-curly-in-string": "error",
|
|
64
|
-
"no-unexpected-multiline": "error",
|
|
65
|
-
"no-unreachable": "error",
|
|
66
|
-
"no-unsafe-finally": "error",
|
|
67
|
-
"no-unsafe-negation": "error",
|
|
68
|
-
"use-isnan": "error",
|
|
69
|
-
"valid-jsdoc": "error",
|
|
70
|
-
"valid-typeof": "error",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"accessor-pairs": "error",
|
|
74
|
-
"array-callback-return": "error",
|
|
75
|
-
"block-scoped-var": "error",
|
|
76
|
-
"class-methods-use-this": "error",
|
|
77
|
-
"complexity": "error",
|
|
78
|
-
"consistent-return": "error",
|
|
79
|
-
"curly": "error",
|
|
80
|
-
"default-case": "error",
|
|
81
|
-
"dot-location": [ "error", "property" ],
|
|
82
|
-
"dot-notation": "error",
|
|
83
|
-
"eqeqeq": "error",
|
|
84
|
-
"guard-for-in": "error",
|
|
85
|
-
"no-alert": "error",
|
|
86
|
-
"no-caller": "error",
|
|
87
|
-
"no-case-declarations": "error",
|
|
88
|
-
"no-div-regex": "error",
|
|
89
|
-
"no-else-return": 0,
|
|
90
|
-
"no-empty-function": "error",
|
|
91
|
-
"no-empty-pattern": "error",
|
|
92
|
-
"no-eq-null": "error",
|
|
93
|
-
"no-eval": "error",
|
|
94
|
-
"no-extend-native": "error",
|
|
95
|
-
"no-extra-bind": "error",
|
|
96
|
-
"no-extra-label": "error",
|
|
97
|
-
"no-fallthrough": "error",
|
|
98
|
-
"no-floating-decimal": "error",
|
|
99
|
-
"no-global-assign": "error",
|
|
100
|
-
"no-implicit-coercion": "error",
|
|
101
|
-
"no-implicit-globals": "error",
|
|
102
|
-
"no-implied-eval": "error",
|
|
103
|
-
"no-invalid-this": "error",
|
|
104
|
-
"no-iterator": "error",
|
|
105
|
-
"no-labels": "error",
|
|
106
|
-
"no-lone-blocks": "error",
|
|
107
|
-
"no-loop-func": "error",
|
|
108
|
-
"no-magic-numbers": 0,
|
|
109
|
-
"no-multi-spaces": "error",
|
|
110
|
-
"no-multi-str": "error",
|
|
111
|
-
"no-new": "error",
|
|
112
|
-
"no-new-func": "error",
|
|
113
|
-
"no-new-wrappers": "error",
|
|
114
|
-
"no-octal": "error",
|
|
115
|
-
"no-octal-escape": "error",
|
|
116
|
-
"no-param-reassign": "error",
|
|
117
|
-
"no-proto": "error",
|
|
118
|
-
"no-redeclare": "error",
|
|
119
|
-
"no-restricted-properties": "error",
|
|
120
|
-
"no-return-assign": "error",
|
|
121
|
-
"no-return-await": "error",
|
|
122
|
-
"no-script-url": "error",
|
|
123
|
-
"no-self-assign": "error",
|
|
124
|
-
"no-self-compare": "error",
|
|
125
|
-
"no-sequences": "error",
|
|
126
|
-
"no-throw-literal": "error",
|
|
127
|
-
"no-unmodified-loop-condition": "error",
|
|
128
|
-
"no-unused-expressions": "error",
|
|
129
|
-
"no-unused-labels": "error",
|
|
130
|
-
"no-useless-call": "error",
|
|
131
|
-
"no-useless-concat": "error",
|
|
132
|
-
"no-useless-escape": "error",
|
|
133
|
-
"no-useless-return": "error",
|
|
134
|
-
"no-void": "error",
|
|
135
|
-
"no-warning-comments": "error",
|
|
136
|
-
"no-with": "error",
|
|
137
|
-
"prefer-promise-reject-errors": "error",
|
|
138
|
-
"radix": "error",
|
|
139
|
-
"require-await": "error",
|
|
140
|
-
"vars-on-top": "error",
|
|
141
|
-
"wrap-iife": "error",
|
|
142
|
-
"yoda": [ "error", "always" ],
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"strict": [ "error", "global" ],
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"init-declarations": "error",
|
|
149
|
-
"no-catch-shadow": "error",
|
|
150
|
-
"no-delete-var": "error",
|
|
151
|
-
"no-label-var": "error",
|
|
152
|
-
"no-restricted-globals": "error",
|
|
153
|
-
"no-shadow": "error",
|
|
154
|
-
"no-shadow-restricted-names": "error",
|
|
155
|
-
"no-undef": "error",
|
|
156
|
-
"no-undef-init": "error",
|
|
157
|
-
"no-undefined": "error",
|
|
158
|
-
"no-unused-vars": "error",
|
|
159
|
-
"no-use-before-define": "error",
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"callback-return": "error",
|
|
163
|
-
"global-require": 0,
|
|
164
|
-
"handle-callback-err": "error",
|
|
165
|
-
"no-buffer-constructor": "error",
|
|
166
|
-
"no-mixed-requires": "error",
|
|
167
|
-
"no-new-require": "error",
|
|
168
|
-
"no-path-concat": "error",
|
|
169
|
-
"no-process-env": "error",
|
|
170
|
-
"no-process-exit": "error",
|
|
171
|
-
"no-restricted-modules": "error",
|
|
172
|
-
"no-sync": "error",
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"array-bracket-newline": "error",
|
|
176
|
-
"array-bracket-spacing": [ "error", "always" ],
|
|
177
|
-
"array-element-newline": [ "error", "consistent" ],
|
|
178
|
-
"block-spacing": "error",
|
|
179
|
-
"brace-style": [ "error", "stroustrup" ],
|
|
180
|
-
"camelcase": "error",
|
|
181
|
-
"capitalized-comments": 0,
|
|
182
|
-
"comma-dangle": [ "error", "never" ],
|
|
183
|
-
"comma-spacing": [ "error", { "before": false, "after": true } ],
|
|
184
|
-
"comma-style": [ "error", "last" ],
|
|
185
|
-
"computed-property-spacing": [ "error", "never" ],
|
|
186
|
-
"consistent-this": "error",
|
|
187
|
-
"eol-last": "error",
|
|
188
|
-
"func-call-spacing": "error",
|
|
189
|
-
"func-name-matching": "error",
|
|
190
|
-
"func-names": "error",
|
|
191
|
-
"func-style": [ "error", "declaration" ],
|
|
192
|
-
"id-blacklist": 0,
|
|
193
|
-
"id-length": 0,
|
|
194
|
-
"id-match": 0,
|
|
195
|
-
"indent": 0,
|
|
196
|
-
"jsx-quotes": [ "error", "prefer-double" ],
|
|
197
|
-
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
|
|
198
|
-
"keyword-spacing": [ "error", { "after": true, "before": true } ],
|
|
199
|
-
"line-comment-position": [ "error", { "position": "above" } ],
|
|
200
|
-
"linebreak-style": 0,
|
|
201
|
-
"lines-around-comment": "error",
|
|
202
|
-
"max-depth": [ "error", 4 ],
|
|
203
|
-
"max-len": [ "error", 150 ],
|
|
204
|
-
"max-lines": [ "error", { "max": 500, "skipComments": true } ],
|
|
205
|
-
"max-nested-callbacks": [ "error", 5 ],
|
|
206
|
-
"max-params": [ "error", 4 ],
|
|
207
|
-
"max-statements": [ "error", 25 ],
|
|
208
|
-
"max-statements-per-line": [ "error", { "max": 2 } ],
|
|
209
|
-
"multiline-ternary": 0,
|
|
210
|
-
"new-cap": "error",
|
|
211
|
-
"new-parens": "error",
|
|
212
|
-
"newline-per-chained-call": 0,
|
|
213
|
-
"no-array-constructor": "error",
|
|
214
|
-
"no-bitwise": "error",
|
|
215
|
-
"no-continue": "error",
|
|
216
|
-
"no-inline-comments": "error",
|
|
217
|
-
"no-lonely-if": "error",
|
|
218
|
-
"no-mixed-operators": "error",
|
|
219
|
-
"no-mixed-spaces-and-tabs": "error",
|
|
220
|
-
"no-multi-assign": "error",
|
|
221
|
-
"no-multiple-empty-lines": "error",
|
|
222
|
-
"no-negated-condition": 0,
|
|
223
|
-
"no-nested-ternary": "error",
|
|
224
|
-
"no-new-object": "error",
|
|
225
|
-
"no-plusplus": 0,
|
|
226
|
-
"no-restricted-syntax": "error",
|
|
227
|
-
"no-tabs": [ "error", { "allowIndentationTabs": true } ],
|
|
228
|
-
"no-ternary": 0,
|
|
229
|
-
"no-trailing-spaces": "error",
|
|
230
|
-
"no-underscore-dangle": 0,
|
|
231
|
-
"no-unneeded-ternary": "error",
|
|
232
|
-
"no-whitespace-before-property": "error",
|
|
233
|
-
"nonblock-statement-body-position": [ "error", "below" ],
|
|
234
|
-
"object-curly-newline": [ "error", { "consistent": true } ],
|
|
235
|
-
"object-curly-spacing": [ "error", "always" ],
|
|
236
|
-
"object-property-newline": "error",
|
|
237
|
-
"one-var": [ "error", "never" ],
|
|
238
|
-
"one-var-declaration-per-line": "error",
|
|
239
|
-
"operator-assignment": [ "error", "always" ],
|
|
240
|
-
"operator-linebreak": [ "error", "after" ],
|
|
241
|
-
"padded-blocks": ["error", { "classes": "always", "switches": "always" } ],
|
|
242
|
-
"padding-line-between-statements": "error",
|
|
243
|
-
"quote-props": [ "error", "always" ],
|
|
244
|
-
"quotes": [ "error", "double" ],
|
|
245
|
-
"require-jsdoc": "error",
|
|
246
|
-
"semi": [ "error", "always" ],
|
|
247
|
-
"semi-spacing": [ "error", { "before": false, "after": true } ],
|
|
248
|
-
"semi-style": [ "error", "last" ],
|
|
249
|
-
"sort-keys": 0,
|
|
250
|
-
"sort-vars": "error",
|
|
251
|
-
"space-before-blocks": [ "error", "always" ],
|
|
252
|
-
"space-before-function-paren": [ "error", "always" ],
|
|
253
|
-
"space-in-parens": [ "error", "never" ],
|
|
254
|
-
"space-infix-ops": "error",
|
|
255
|
-
"space-unary-ops": "error",
|
|
256
|
-
"spaced-comment": [ "error", "always" ],
|
|
257
|
-
"switch-colon-spacing": [ "error", { "after": true, "before": false } ],
|
|
258
|
-
"template-tag-spacing": [ "error", "always" ],
|
|
259
|
-
"unicode-bom": 0,
|
|
260
|
-
"wrap-regex": "error",
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"arrow-body-style": [ "error", "always" ],
|
|
264
|
-
"arrow-parens": [ "error", "always" ],
|
|
265
|
-
"arrow-spacing": ["error", { "before": true, "after": true } ],
|
|
266
|
-
"constructor-super": "error",
|
|
267
|
-
"generator-star-spacing": [ "error", { "before": true, "after": false } ],
|
|
268
|
-
"no-class-assign": "error",
|
|
269
|
-
"no-confusing-arrow": "error",
|
|
270
|
-
"no-const-assign": "error",
|
|
271
|
-
"no-dupe-class-members": "error",
|
|
272
|
-
"no-duplicate-imports": "error",
|
|
273
|
-
"no-new-symbol": "error",
|
|
274
|
-
"no-restricted-imports": 0,
|
|
275
|
-
"no-this-before-super": "error",
|
|
276
|
-
"no-useless-computed-key": "error",
|
|
277
|
-
"no-useless-constructor": "error",
|
|
278
|
-
"no-useless-rename": "error",
|
|
279
|
-
"no-var": "error",
|
|
280
|
-
"object-shorthand": "error",
|
|
281
|
-
"prefer-arrow-callback": "error",
|
|
282
|
-
"prefer-const": "error",
|
|
283
|
-
"prefer-destructuring": "error",
|
|
284
|
-
"prefer-numeric-literals": "error",
|
|
285
|
-
"prefer-rest-params": "error",
|
|
286
|
-
"prefer-spread": "error",
|
|
287
|
-
"prefer-template": 0,
|
|
288
|
-
"require-yield": "error",
|
|
289
|
-
"rest-spread-spacing": [ "error", "never" ],
|
|
290
|
-
"sort-imports": "error",
|
|
291
|
-
"symbol-description": "error",
|
|
292
|
-
"template-curly-spacing": "error",
|
|
293
|
-
"yield-star-spacing": [ "error", { "before": true, "after": false } ]
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
"extends": "eslint:recommended",
|
|
3
|
+
"parserOptions": {
|
|
4
|
+
"ecmaVersion": 2018
|
|
5
|
+
},
|
|
6
|
+
"env": {
|
|
7
|
+
"es6": true,
|
|
8
|
+
"mocha": true,
|
|
9
|
+
"node": true
|
|
10
|
+
},
|
|
11
|
+
"globals": {
|
|
12
|
+
"after": true,
|
|
13
|
+
"afterEach": true,
|
|
14
|
+
"angular": true,
|
|
15
|
+
"before": true,
|
|
16
|
+
"beforeEach": true,
|
|
17
|
+
"Buffer": true,
|
|
18
|
+
"console": true,
|
|
19
|
+
"clearInterval": true,
|
|
20
|
+
"clearTimeout": true,
|
|
21
|
+
"describe": true,
|
|
22
|
+
"it": true,
|
|
23
|
+
"jQuery": true,
|
|
24
|
+
"Promise": true,
|
|
25
|
+
"Map": true,
|
|
26
|
+
"module": true,
|
|
27
|
+
"os": true,
|
|
28
|
+
"process": true,
|
|
29
|
+
"require": true,
|
|
30
|
+
"setImmediate": true,
|
|
31
|
+
"setInterval": true,
|
|
32
|
+
"setTimeout": true,
|
|
33
|
+
"__dirname": true,
|
|
34
|
+
"__filename": true
|
|
35
|
+
},
|
|
36
|
+
"rules": {
|
|
37
|
+
"for-direction": "error",
|
|
38
|
+
"getter-return": "error",
|
|
39
|
+
"no-await-in-loop": "error",
|
|
40
|
+
"no-compare-neg-zero": "error",
|
|
41
|
+
"no-cond-assign": "error",
|
|
42
|
+
"no-console": "error",
|
|
43
|
+
"no-constant-condition": "error",
|
|
44
|
+
"no-control-regex": "error",
|
|
45
|
+
"no-debugger": "error",
|
|
46
|
+
"no-dupe-args": "error",
|
|
47
|
+
"no-dupe-keys": "error",
|
|
48
|
+
"no-duplicate-case": "error",
|
|
49
|
+
"no-empty": "error",
|
|
50
|
+
"no-empty-character-class": "error",
|
|
51
|
+
"no-ex-assign": "error",
|
|
52
|
+
"no-extra-boolean-cast": "error",
|
|
53
|
+
"no-extra-parens": "error",
|
|
54
|
+
"no-extra-semi": "error",
|
|
55
|
+
"no-func-assign": "error",
|
|
56
|
+
"no-inner-declarations": "error",
|
|
57
|
+
"no-invalid-regexp": "error",
|
|
58
|
+
"no-irregular-whitespace": "error",
|
|
59
|
+
"no-obj-calls": "error",
|
|
60
|
+
"no-prototype-builtins": "error",
|
|
61
|
+
"no-regex-spaces": "error",
|
|
62
|
+
"no-sparse-arrays": "error",
|
|
63
|
+
"no-template-curly-in-string": "error",
|
|
64
|
+
"no-unexpected-multiline": "error",
|
|
65
|
+
"no-unreachable": "error",
|
|
66
|
+
"no-unsafe-finally": "error",
|
|
67
|
+
"no-unsafe-negation": "error",
|
|
68
|
+
"use-isnan": "error",
|
|
69
|
+
"valid-jsdoc": "error",
|
|
70
|
+
"valid-typeof": "error",
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
"accessor-pairs": "error",
|
|
74
|
+
"array-callback-return": "error",
|
|
75
|
+
"block-scoped-var": "error",
|
|
76
|
+
"class-methods-use-this": "error",
|
|
77
|
+
"complexity": "error",
|
|
78
|
+
"consistent-return": "error",
|
|
79
|
+
"curly": "error",
|
|
80
|
+
"default-case": "error",
|
|
81
|
+
"dot-location": [ "error", "property" ],
|
|
82
|
+
"dot-notation": "error",
|
|
83
|
+
"eqeqeq": "error",
|
|
84
|
+
"guard-for-in": "error",
|
|
85
|
+
"no-alert": "error",
|
|
86
|
+
"no-caller": "error",
|
|
87
|
+
"no-case-declarations": "error",
|
|
88
|
+
"no-div-regex": "error",
|
|
89
|
+
"no-else-return": 0,
|
|
90
|
+
"no-empty-function": "error",
|
|
91
|
+
"no-empty-pattern": "error",
|
|
92
|
+
"no-eq-null": "error",
|
|
93
|
+
"no-eval": "error",
|
|
94
|
+
"no-extend-native": "error",
|
|
95
|
+
"no-extra-bind": "error",
|
|
96
|
+
"no-extra-label": "error",
|
|
97
|
+
"no-fallthrough": "error",
|
|
98
|
+
"no-floating-decimal": "error",
|
|
99
|
+
"no-global-assign": "error",
|
|
100
|
+
"no-implicit-coercion": "error",
|
|
101
|
+
"no-implicit-globals": "error",
|
|
102
|
+
"no-implied-eval": "error",
|
|
103
|
+
"no-invalid-this": "error",
|
|
104
|
+
"no-iterator": "error",
|
|
105
|
+
"no-labels": "error",
|
|
106
|
+
"no-lone-blocks": "error",
|
|
107
|
+
"no-loop-func": "error",
|
|
108
|
+
"no-magic-numbers": 0,
|
|
109
|
+
"no-multi-spaces": "error",
|
|
110
|
+
"no-multi-str": "error",
|
|
111
|
+
"no-new": "error",
|
|
112
|
+
"no-new-func": "error",
|
|
113
|
+
"no-new-wrappers": "error",
|
|
114
|
+
"no-octal": "error",
|
|
115
|
+
"no-octal-escape": "error",
|
|
116
|
+
"no-param-reassign": "error",
|
|
117
|
+
"no-proto": "error",
|
|
118
|
+
"no-redeclare": "error",
|
|
119
|
+
"no-restricted-properties": "error",
|
|
120
|
+
"no-return-assign": "error",
|
|
121
|
+
"no-return-await": "error",
|
|
122
|
+
"no-script-url": "error",
|
|
123
|
+
"no-self-assign": "error",
|
|
124
|
+
"no-self-compare": "error",
|
|
125
|
+
"no-sequences": "error",
|
|
126
|
+
"no-throw-literal": "error",
|
|
127
|
+
"no-unmodified-loop-condition": "error",
|
|
128
|
+
"no-unused-expressions": "error",
|
|
129
|
+
"no-unused-labels": "error",
|
|
130
|
+
"no-useless-call": "error",
|
|
131
|
+
"no-useless-concat": "error",
|
|
132
|
+
"no-useless-escape": "error",
|
|
133
|
+
"no-useless-return": "error",
|
|
134
|
+
"no-void": "error",
|
|
135
|
+
"no-warning-comments": "error",
|
|
136
|
+
"no-with": "error",
|
|
137
|
+
"prefer-promise-reject-errors": "error",
|
|
138
|
+
"radix": "error",
|
|
139
|
+
"require-await": "error",
|
|
140
|
+
"vars-on-top": "error",
|
|
141
|
+
"wrap-iife": "error",
|
|
142
|
+
"yoda": [ "error", "always" ],
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
"strict": [ "error", "global" ],
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
"init-declarations": "error",
|
|
149
|
+
"no-catch-shadow": "error",
|
|
150
|
+
"no-delete-var": "error",
|
|
151
|
+
"no-label-var": "error",
|
|
152
|
+
"no-restricted-globals": "error",
|
|
153
|
+
"no-shadow": "error",
|
|
154
|
+
"no-shadow-restricted-names": "error",
|
|
155
|
+
"no-undef": "error",
|
|
156
|
+
"no-undef-init": "error",
|
|
157
|
+
"no-undefined": "error",
|
|
158
|
+
"no-unused-vars": "error",
|
|
159
|
+
"no-use-before-define": "error",
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
"callback-return": "error",
|
|
163
|
+
"global-require": 0,
|
|
164
|
+
"handle-callback-err": "error",
|
|
165
|
+
"no-buffer-constructor": "error",
|
|
166
|
+
"no-mixed-requires": "error",
|
|
167
|
+
"no-new-require": "error",
|
|
168
|
+
"no-path-concat": "error",
|
|
169
|
+
"no-process-env": "error",
|
|
170
|
+
"no-process-exit": "error",
|
|
171
|
+
"no-restricted-modules": "error",
|
|
172
|
+
"no-sync": "error",
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
"array-bracket-newline": "error",
|
|
176
|
+
"array-bracket-spacing": [ "error", "always" ],
|
|
177
|
+
"array-element-newline": [ "error", "consistent" ],
|
|
178
|
+
"block-spacing": "error",
|
|
179
|
+
"brace-style": [ "error", "stroustrup" ],
|
|
180
|
+
"camelcase": "error",
|
|
181
|
+
"capitalized-comments": 0,
|
|
182
|
+
"comma-dangle": [ "error", "never" ],
|
|
183
|
+
"comma-spacing": [ "error", { "before": false, "after": true } ],
|
|
184
|
+
"comma-style": [ "error", "last" ],
|
|
185
|
+
"computed-property-spacing": [ "error", "never" ],
|
|
186
|
+
"consistent-this": "error",
|
|
187
|
+
"eol-last": "error",
|
|
188
|
+
"func-call-spacing": "error",
|
|
189
|
+
"func-name-matching": "error",
|
|
190
|
+
"func-names": "error",
|
|
191
|
+
"func-style": [ "error", "declaration" ],
|
|
192
|
+
"id-blacklist": 0,
|
|
193
|
+
"id-length": 0,
|
|
194
|
+
"id-match": 0,
|
|
195
|
+
"indent": 0,
|
|
196
|
+
"jsx-quotes": [ "error", "prefer-double" ],
|
|
197
|
+
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
|
|
198
|
+
"keyword-spacing": [ "error", { "after": true, "before": true } ],
|
|
199
|
+
"line-comment-position": [ "error", { "position": "above" } ],
|
|
200
|
+
"linebreak-style": 0,
|
|
201
|
+
"lines-around-comment": "error",
|
|
202
|
+
"max-depth": [ "error", 4 ],
|
|
203
|
+
"max-len": [ "error", 150 ],
|
|
204
|
+
"max-lines": [ "error", { "max": 500, "skipComments": true } ],
|
|
205
|
+
"max-nested-callbacks": [ "error", 5 ],
|
|
206
|
+
"max-params": [ "error", 4 ],
|
|
207
|
+
"max-statements": [ "error", 25 ],
|
|
208
|
+
"max-statements-per-line": [ "error", { "max": 2 } ],
|
|
209
|
+
"multiline-ternary": 0,
|
|
210
|
+
"new-cap": "error",
|
|
211
|
+
"new-parens": "error",
|
|
212
|
+
"newline-per-chained-call": 0,
|
|
213
|
+
"no-array-constructor": "error",
|
|
214
|
+
"no-bitwise": "error",
|
|
215
|
+
"no-continue": "error",
|
|
216
|
+
"no-inline-comments": "error",
|
|
217
|
+
"no-lonely-if": "error",
|
|
218
|
+
"no-mixed-operators": "error",
|
|
219
|
+
"no-mixed-spaces-and-tabs": "error",
|
|
220
|
+
"no-multi-assign": "error",
|
|
221
|
+
"no-multiple-empty-lines": "error",
|
|
222
|
+
"no-negated-condition": 0,
|
|
223
|
+
"no-nested-ternary": "error",
|
|
224
|
+
"no-new-object": "error",
|
|
225
|
+
"no-plusplus": 0,
|
|
226
|
+
"no-restricted-syntax": "error",
|
|
227
|
+
"no-tabs": [ "error", { "allowIndentationTabs": true } ],
|
|
228
|
+
"no-ternary": 0,
|
|
229
|
+
"no-trailing-spaces": "error",
|
|
230
|
+
"no-underscore-dangle": 0,
|
|
231
|
+
"no-unneeded-ternary": "error",
|
|
232
|
+
"no-whitespace-before-property": "error",
|
|
233
|
+
"nonblock-statement-body-position": [ "error", "below" ],
|
|
234
|
+
"object-curly-newline": [ "error", { "consistent": true } ],
|
|
235
|
+
"object-curly-spacing": [ "error", "always" ],
|
|
236
|
+
"object-property-newline": "error",
|
|
237
|
+
"one-var": [ "error", "never" ],
|
|
238
|
+
"one-var-declaration-per-line": "error",
|
|
239
|
+
"operator-assignment": [ "error", "always" ],
|
|
240
|
+
"operator-linebreak": [ "error", "after" ],
|
|
241
|
+
"padded-blocks": ["error", { "classes": "always", "switches": "always" } ],
|
|
242
|
+
"padding-line-between-statements": "error",
|
|
243
|
+
"quote-props": [ "error", "always" ],
|
|
244
|
+
"quotes": [ "error", "double" ],
|
|
245
|
+
"require-jsdoc": "error",
|
|
246
|
+
"semi": [ "error", "always" ],
|
|
247
|
+
"semi-spacing": [ "error", { "before": false, "after": true } ],
|
|
248
|
+
"semi-style": [ "error", "last" ],
|
|
249
|
+
"sort-keys": 0,
|
|
250
|
+
"sort-vars": "error",
|
|
251
|
+
"space-before-blocks": [ "error", "always" ],
|
|
252
|
+
"space-before-function-paren": [ "error", "always" ],
|
|
253
|
+
"space-in-parens": [ "error", "never" ],
|
|
254
|
+
"space-infix-ops": "error",
|
|
255
|
+
"space-unary-ops": "error",
|
|
256
|
+
"spaced-comment": [ "error", "always" ],
|
|
257
|
+
"switch-colon-spacing": [ "error", { "after": true, "before": false } ],
|
|
258
|
+
"template-tag-spacing": [ "error", "always" ],
|
|
259
|
+
"unicode-bom": 0,
|
|
260
|
+
"wrap-regex": "error",
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
"arrow-body-style": [ "error", "always" ],
|
|
264
|
+
"arrow-parens": [ "error", "always" ],
|
|
265
|
+
"arrow-spacing": ["error", { "before": true, "after": true } ],
|
|
266
|
+
"constructor-super": "error",
|
|
267
|
+
"generator-star-spacing": [ "error", { "before": true, "after": false } ],
|
|
268
|
+
"no-class-assign": "error",
|
|
269
|
+
"no-confusing-arrow": "error",
|
|
270
|
+
"no-const-assign": "error",
|
|
271
|
+
"no-dupe-class-members": "error",
|
|
272
|
+
"no-duplicate-imports": "error",
|
|
273
|
+
"no-new-symbol": "error",
|
|
274
|
+
"no-restricted-imports": 0,
|
|
275
|
+
"no-this-before-super": "error",
|
|
276
|
+
"no-useless-computed-key": "error",
|
|
277
|
+
"no-useless-constructor": "error",
|
|
278
|
+
"no-useless-rename": "error",
|
|
279
|
+
"no-var": "error",
|
|
280
|
+
"object-shorthand": "error",
|
|
281
|
+
"prefer-arrow-callback": "error",
|
|
282
|
+
"prefer-const": "error",
|
|
283
|
+
"prefer-destructuring": "error",
|
|
284
|
+
"prefer-numeric-literals": "error",
|
|
285
|
+
"prefer-rest-params": "error",
|
|
286
|
+
"prefer-spread": "error",
|
|
287
|
+
"prefer-template": 0,
|
|
288
|
+
"require-yield": "error",
|
|
289
|
+
"rest-spread-spacing": [ "error", "never" ],
|
|
290
|
+
"sort-imports": "error",
|
|
291
|
+
"symbol-description": "error",
|
|
292
|
+
"template-curly-spacing": "error",
|
|
293
|
+
"yield-star-spacing": [ "error", { "before": true, "after": false } ]
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
};
|
package/.travis.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
language: node_js
|
|
2
|
-
node_js:
|
|
3
|
-
- "8"
|
|
4
|
-
- "10"
|
|
5
|
-
install:
|
|
6
|
-
- "npm install -g typescript"
|
|
7
|
-
- "npm install"
|
|
8
|
-
script: "npm run-script ci"
|
|
1
|
+
language: node_js
|
|
2
|
+
node_js:
|
|
3
|
+
- "8"
|
|
4
|
+
- "10"
|
|
5
|
+
install:
|
|
6
|
+
- "npm install -g typescript"
|
|
7
|
+
- "npm install"
|
|
8
|
+
script: "npm run-script ci"
|
package/LICENSE
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
Copyright (c) 2019, Sébastien Vidal
|
|
2
|
-
|
|
3
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
-
copyright notice and this permission notice appear in all copies.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
13
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
1
|
+
Copyright (c) 2019, Sébastien Vidal
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
13
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|