karma-child-process 1.0.15 → 1.0.17
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/eslint.config.js +285 -0
- package/package.json +8 -7
package/eslint.config.js
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import {defineConfig} from "eslint/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([{
|
|
4
|
+
languageOptions: {
|
|
5
|
+
globals: {
|
|
6
|
+
require: "readonly",
|
|
7
|
+
module: "readonly",
|
|
8
|
+
exports: "readonly",
|
|
9
|
+
process: "readonly",
|
|
10
|
+
describe: "readonly",
|
|
11
|
+
it: "readonly",
|
|
12
|
+
beforeEach: "readonly",
|
|
13
|
+
afterEach: "readonly",
|
|
14
|
+
},
|
|
15
|
+
ecmaVersion: 6,
|
|
16
|
+
},
|
|
17
|
+
// env: {
|
|
18
|
+
// node: true,
|
|
19
|
+
// },
|
|
20
|
+
ignores: ["**/*.config.js"],
|
|
21
|
+
rules: {
|
|
22
|
+
"comma-dangle": [2, "never"],
|
|
23
|
+
"no-cond-assign": 2,
|
|
24
|
+
"no-console": 2,
|
|
25
|
+
"no-constant-condition": 2,
|
|
26
|
+
"no-control-regex": 2,
|
|
27
|
+
"no-debugger": 2,
|
|
28
|
+
"no-dupe-args": 2,
|
|
29
|
+
"no-dupe-keys": 2,
|
|
30
|
+
"no-duplicate-case": 2,
|
|
31
|
+
"no-empty": 2,
|
|
32
|
+
"no-empty-character-class": 2,
|
|
33
|
+
"no-ex-assign": 2,
|
|
34
|
+
"no-extra-boolean-cast": 2,
|
|
35
|
+
"no-extra-parens": 0,
|
|
36
|
+
"no-extra-semi": 2,
|
|
37
|
+
"no-func-assign": 2,
|
|
38
|
+
"no-inner-declarations": [2, "functions"],
|
|
39
|
+
"no-invalid-regexp": 2,
|
|
40
|
+
"no-irregular-whitespace": 2,
|
|
41
|
+
"no-negated-in-lhs": 2,
|
|
42
|
+
"no-obj-calls": 2,
|
|
43
|
+
"no-regex-spaces": 2,
|
|
44
|
+
"no-sparse-arrays": 2,
|
|
45
|
+
"no-unreachable": 2,
|
|
46
|
+
"no-unexpected-multiline": 2,
|
|
47
|
+
"use-isnan": 2,
|
|
48
|
+
|
|
49
|
+
"valid-typeof": 2,
|
|
50
|
+
"accessor-pairs": 0,
|
|
51
|
+
"block-scoped-var": 2,
|
|
52
|
+
complexity: [2, 14],
|
|
53
|
+
"consistent-return": 2,
|
|
54
|
+
curly: [2, "all"],
|
|
55
|
+
"default-case": 2,
|
|
56
|
+
"dot-location": [2, "property"],
|
|
57
|
+
"dot-notation": 2,
|
|
58
|
+
eqeqeq: 2,
|
|
59
|
+
"guard-for-in": 1,
|
|
60
|
+
"no-alert": 2,
|
|
61
|
+
"no-caller": 2,
|
|
62
|
+
"no-div-regex": 2,
|
|
63
|
+
"no-else-return": 2,
|
|
64
|
+
"no-eq-null": 0,
|
|
65
|
+
"no-eval": 2,
|
|
66
|
+
"no-extend-native": 2,
|
|
67
|
+
"no-extra-bind": 2,
|
|
68
|
+
"no-fallthrough": 2,
|
|
69
|
+
"no-floating-decimal": 2,
|
|
70
|
+
|
|
71
|
+
"no-implicit-coercion": [0, {
|
|
72
|
+
boolean: false,
|
|
73
|
+
number: false,
|
|
74
|
+
string: false,
|
|
75
|
+
}],
|
|
76
|
+
|
|
77
|
+
"no-implied-eval": 2,
|
|
78
|
+
"no-invalid-this": 2,
|
|
79
|
+
"no-iterator": 2,
|
|
80
|
+
"no-labels": 2,
|
|
81
|
+
"no-lone-blocks": 2,
|
|
82
|
+
"no-loop-func": 2,
|
|
83
|
+
"no-multi-spaces": 2,
|
|
84
|
+
"no-multi-str": 2,
|
|
85
|
+
"no-native-reassign": 2,
|
|
86
|
+
"no-new": 2,
|
|
87
|
+
"no-new-func": 2,
|
|
88
|
+
"no-new-wrappers": 2,
|
|
89
|
+
"no-octal": 2,
|
|
90
|
+
"no-octal-escape": 2,
|
|
91
|
+
|
|
92
|
+
"no-param-reassign": [2, {
|
|
93
|
+
props: false,
|
|
94
|
+
}],
|
|
95
|
+
|
|
96
|
+
"no-process-env": 2,
|
|
97
|
+
"no-proto": 2,
|
|
98
|
+
"no-redeclare": 2,
|
|
99
|
+
"no-return-assign": [2, "always"],
|
|
100
|
+
"no-script-url": 2,
|
|
101
|
+
"no-self-compare": 2,
|
|
102
|
+
"no-sequences": 2,
|
|
103
|
+
"no-throw-literal": 2,
|
|
104
|
+
"no-useless-call": 2,
|
|
105
|
+
"no-useless-concat": 2,
|
|
106
|
+
"no-unused-expressions": 0,
|
|
107
|
+
"no-void": 2,
|
|
108
|
+
|
|
109
|
+
"no-warning-comments": [2, {
|
|
110
|
+
terms: ["todo", "fixme"],
|
|
111
|
+
location: "start",
|
|
112
|
+
}],
|
|
113
|
+
|
|
114
|
+
"no-with": 2,
|
|
115
|
+
radix: 2,
|
|
116
|
+
"vars-on-top": 2,
|
|
117
|
+
"wrap-iife": [2, "outside"],
|
|
118
|
+
yoda: [2, "never"],
|
|
119
|
+
strict: [2, "never"],
|
|
120
|
+
"init-declarations": 0,
|
|
121
|
+
"no-catch-shadow": 2,
|
|
122
|
+
"no-delete-var": 2,
|
|
123
|
+
"no-label-var": 2,
|
|
124
|
+
"no-shadow": 2,
|
|
125
|
+
"no-shadow-restricted-names": 2,
|
|
126
|
+
"no-undef": 2,
|
|
127
|
+
"no-undef-init": 2,
|
|
128
|
+
"no-undefined": 2,
|
|
129
|
+
|
|
130
|
+
"no-unused-vars": [2, {
|
|
131
|
+
vars: "all",
|
|
132
|
+
args: "none",
|
|
133
|
+
ignoreRestSiblings: true,
|
|
134
|
+
}],
|
|
135
|
+
|
|
136
|
+
"no-use-before-define": 2,
|
|
137
|
+
"callback-return": [2, ["callback"]],
|
|
138
|
+
"global-require": 2,
|
|
139
|
+
"handle-callback-err": 2,
|
|
140
|
+
"no-mixed-requires": 2,
|
|
141
|
+
"no-new-require": 2,
|
|
142
|
+
"no-path-concat": 2,
|
|
143
|
+
"no-process-exit": 2,
|
|
144
|
+
"no-restricted-modules": 0,
|
|
145
|
+
"no-sync": 0,
|
|
146
|
+
"array-bracket-spacing": [2, "never"],
|
|
147
|
+
"block-spacing": 0,
|
|
148
|
+
|
|
149
|
+
"brace-style": [2, "1tbs", {
|
|
150
|
+
allowSingleLine: false,
|
|
151
|
+
}],
|
|
152
|
+
|
|
153
|
+
camelcase: [2, {
|
|
154
|
+
properties: "never",
|
|
155
|
+
}],
|
|
156
|
+
|
|
157
|
+
"comma-spacing": [2, {
|
|
158
|
+
before: false,
|
|
159
|
+
after: true,
|
|
160
|
+
}],
|
|
161
|
+
|
|
162
|
+
"comma-style": [2, "last"],
|
|
163
|
+
"computed-property-spacing": [2, "never"],
|
|
164
|
+
"consistent-this": [2, "_this"],
|
|
165
|
+
"eol-last": 2,
|
|
166
|
+
"func-names": 0,
|
|
167
|
+
"func-style": 0,
|
|
168
|
+
|
|
169
|
+
"id-length": [0, {
|
|
170
|
+
max: 25,
|
|
171
|
+
}],
|
|
172
|
+
|
|
173
|
+
"id-match": 0,
|
|
174
|
+
indent: [2, 2],
|
|
175
|
+
"jsx-quotes": [2, "prefer-double"],
|
|
176
|
+
|
|
177
|
+
"key-spacing": [2, {
|
|
178
|
+
beforeColon: false,
|
|
179
|
+
afterColon: true,
|
|
180
|
+
}],
|
|
181
|
+
|
|
182
|
+
"linebreak-style": [2, "unix"],
|
|
183
|
+
|
|
184
|
+
"lines-around-comment": [2, {
|
|
185
|
+
beforeBlockComment: true,
|
|
186
|
+
beforeLineComment: true,
|
|
187
|
+
afterBlockComment: false,
|
|
188
|
+
afterLineComment: false,
|
|
189
|
+
allowBlockStart: true,
|
|
190
|
+
allowBlockEnd: false,
|
|
191
|
+
}],
|
|
192
|
+
|
|
193
|
+
"max-nested-callbacks": [2, 6],
|
|
194
|
+
|
|
195
|
+
"new-cap": [2, {
|
|
196
|
+
properties: false,
|
|
197
|
+
}],
|
|
198
|
+
|
|
199
|
+
"new-parens": 2,
|
|
200
|
+
"newline-after-var": 2,
|
|
201
|
+
"no-array-constructor": 2,
|
|
202
|
+
"no-continue": 2,
|
|
203
|
+
"no-inline-comments": 2,
|
|
204
|
+
"no-lonely-if": 2,
|
|
205
|
+
"no-mixed-spaces-and-tabs": [2, false],
|
|
206
|
+
|
|
207
|
+
"no-multiple-empty-lines": [2, {
|
|
208
|
+
max: 1,
|
|
209
|
+
}],
|
|
210
|
+
|
|
211
|
+
"no-nested-ternary": 2,
|
|
212
|
+
"no-new-object": 2,
|
|
213
|
+
"no-restricted-syntax": 0,
|
|
214
|
+
"no-spaced-func": 2,
|
|
215
|
+
"no-ternary": 0,
|
|
216
|
+
"no-trailing-spaces": 2,
|
|
217
|
+
"no-underscore-dangle": 0,
|
|
218
|
+
"no-unneeded-ternary": 2,
|
|
219
|
+
"no-wrap-func": 0,
|
|
220
|
+
"object-curly-spacing": [2, "never"],
|
|
221
|
+
"one-var": 0,
|
|
222
|
+
"operator-assignment": [0, "always"],
|
|
223
|
+
"operator-linebreak": [2, "after"],
|
|
224
|
+
"padded-blocks": [2, "never"],
|
|
225
|
+
"quote-props": [2, "consistent-as-needed"],
|
|
226
|
+
quotes: [2, "single"],
|
|
227
|
+
"require-jsdoc": 0,
|
|
228
|
+
semi: [2, "always"],
|
|
229
|
+
|
|
230
|
+
"semi-spacing": [2, {
|
|
231
|
+
before: false,
|
|
232
|
+
after: true,
|
|
233
|
+
}],
|
|
234
|
+
|
|
235
|
+
"sort-vars": 0,
|
|
236
|
+
|
|
237
|
+
"keyword-spacing": [2, {
|
|
238
|
+
before: true,
|
|
239
|
+
after: true,
|
|
240
|
+
}],
|
|
241
|
+
|
|
242
|
+
"space-before-keywords": 0,
|
|
243
|
+
"space-before-blocks": [2, "always"],
|
|
244
|
+
"space-before-function-paren": [2, "never"],
|
|
245
|
+
"space-in-brackets": 0,
|
|
246
|
+
"space-in-parens": [2, "never"],
|
|
247
|
+
"space-infix-ops": 2,
|
|
248
|
+
|
|
249
|
+
"space-unary-ops": [2, {
|
|
250
|
+
words: true,
|
|
251
|
+
nonwords: false,
|
|
252
|
+
}],
|
|
253
|
+
|
|
254
|
+
"spaced-comment": [2, "always"],
|
|
255
|
+
"wrap-regex": 0,
|
|
256
|
+
"arrow-parens": [2, "as-needed"],
|
|
257
|
+
|
|
258
|
+
"arrow-spacing": [2, {
|
|
259
|
+
before: true,
|
|
260
|
+
after: true,
|
|
261
|
+
}],
|
|
262
|
+
|
|
263
|
+
"constructor-super": 2,
|
|
264
|
+
"generator-star-spacing": 2,
|
|
265
|
+
"no-class-assign": 2,
|
|
266
|
+
"no-const-assign": 2,
|
|
267
|
+
"no-dupe-class-members": 2,
|
|
268
|
+
"no-this-before-super": 2,
|
|
269
|
+
"no-var": 0,
|
|
270
|
+
"object-shorthand": [2, "methods"],
|
|
271
|
+
"prefer-arrow-callback": 0,
|
|
272
|
+
"prefer-const": 2,
|
|
273
|
+
"prefer-spread": 2,
|
|
274
|
+
"prefer-reflect": 0,
|
|
275
|
+
"prefer-template": 2,
|
|
276
|
+
"require-yield": 2,
|
|
277
|
+
|
|
278
|
+
"max-len": [2, 140, 2, {
|
|
279
|
+
ignoreComments: false,
|
|
280
|
+
ignoreUrls: true,
|
|
281
|
+
}],
|
|
282
|
+
|
|
283
|
+
"max-depth": [2, 4],
|
|
284
|
+
},
|
|
285
|
+
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karma-child-process",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "A simple Karma framework to start a child process (which is supposed to start a server written with node).",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,19 +21,20 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"browserify": "17.0.1",
|
|
23
23
|
"chai": "4.5.0",
|
|
24
|
-
"eslint": "9.
|
|
25
|
-
"
|
|
24
|
+
"eslint": "9.33.0",
|
|
25
|
+
"eslint-formatter-checkstyle": "8.40.0",
|
|
26
|
+
"express": "5.1.0",
|
|
26
27
|
"karma": "6.4.4",
|
|
27
28
|
"karma-browserify": "8.1.0",
|
|
28
29
|
"karma-firefox-launcher": "2.1.3",
|
|
29
30
|
"karma-mocha": "2.0.1",
|
|
30
31
|
"karma-mocha-reporter": "2.2.5",
|
|
31
32
|
"karma-child-process": "file:.",
|
|
32
|
-
"mocha": "11.1
|
|
33
|
-
"rewire": "
|
|
34
|
-
"sinon": "
|
|
33
|
+
"mocha": "11.7.1",
|
|
34
|
+
"rewire": "9.0.1",
|
|
35
|
+
"sinon": "21.0.0",
|
|
35
36
|
"sinon-chai": "3.7.0",
|
|
36
37
|
"watchify": "4.0.0",
|
|
37
|
-
"ws": "8.18.
|
|
38
|
+
"ws": "8.18.3"
|
|
38
39
|
}
|
|
39
40
|
}
|