eslint-plugin-wdio 9.25.0 → 9.26.0
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/build/constants.d.ts.map +1 -1
- package/build/index.cjs +67 -0
- package/build/index.d.ts +268 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +67 -0
- package/package.json +3 -3
- package/src/constants.ts +1 -0
- package/src/index.ts +9 -0
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,UAyCpB,CAAA"}
|
package/build/index.cjs
CHANGED
|
@@ -32,6 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
var index_exports = {};
|
|
33
33
|
__export(index_exports, {
|
|
34
34
|
configs: () => configs,
|
|
35
|
+
default: () => index_default,
|
|
35
36
|
rules: () => rules2
|
|
36
37
|
});
|
|
37
38
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -70,6 +71,7 @@ var MATCHERS = [
|
|
|
70
71
|
"toHaveHref",
|
|
71
72
|
"toHaveId",
|
|
72
73
|
"toHaveLink",
|
|
74
|
+
"toHaveLocalStorageItem",
|
|
73
75
|
"toHaveSize",
|
|
74
76
|
"toHaveStyle",
|
|
75
77
|
"toHaveText",
|
|
@@ -356,6 +358,63 @@ var rules = {
|
|
|
356
358
|
};
|
|
357
359
|
var ts_recommended_default = isTypeAware ? tsRecommended() : void 0;
|
|
358
360
|
|
|
361
|
+
// package.json
|
|
362
|
+
var package_default = {
|
|
363
|
+
name: "eslint-plugin-wdio",
|
|
364
|
+
version: "9.25.0",
|
|
365
|
+
description: "Eslint rules for WebdriverIO",
|
|
366
|
+
author: "Christian Bromann <mail@bromann.dev>",
|
|
367
|
+
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/eslint-plugin-wdio",
|
|
368
|
+
license: "MIT",
|
|
369
|
+
main: "./build/index.cjs",
|
|
370
|
+
module: "./build/index.js",
|
|
371
|
+
types: "./build/index.d.ts",
|
|
372
|
+
exports: {
|
|
373
|
+
".": {
|
|
374
|
+
types: "./build/index.d.ts",
|
|
375
|
+
import: "./build/index.js",
|
|
376
|
+
require: "./build/index.cjs"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
type: "module",
|
|
380
|
+
typeScriptVersion: "3.8.3",
|
|
381
|
+
engines: {
|
|
382
|
+
node: ">=18.20.0"
|
|
383
|
+
},
|
|
384
|
+
repository: {
|
|
385
|
+
type: "git",
|
|
386
|
+
url: "git+https://github.com/webdriverio/webdriverio.git",
|
|
387
|
+
directory: "packages/eslint-plugin-wdio"
|
|
388
|
+
},
|
|
389
|
+
keywords: [
|
|
390
|
+
"eslint",
|
|
391
|
+
"eslintplugin",
|
|
392
|
+
"eslint-plugin",
|
|
393
|
+
"webdriver",
|
|
394
|
+
"wdio"
|
|
395
|
+
],
|
|
396
|
+
bugs: {
|
|
397
|
+
url: "https://github.com/webdriverio/webdriverio/issues"
|
|
398
|
+
},
|
|
399
|
+
devDependencies: {
|
|
400
|
+
"@types/estree": "^1.0.8",
|
|
401
|
+
eslint: "^9.39.2",
|
|
402
|
+
"expect-webdriverio": "^5.6.5",
|
|
403
|
+
globals: "^16.5.0",
|
|
404
|
+
"typescript-eslint": "^8.54.0"
|
|
405
|
+
},
|
|
406
|
+
peerDependencies: {
|
|
407
|
+
eslint: "^9.39.2",
|
|
408
|
+
globals: "^16.5.0",
|
|
409
|
+
"typescript-eslint": "^8.54.0"
|
|
410
|
+
},
|
|
411
|
+
peerDependenciesMeta: {
|
|
412
|
+
"typescript-eslint": {
|
|
413
|
+
optional: true
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
|
|
359
418
|
// src/index.ts
|
|
360
419
|
var legacyConfig = {
|
|
361
420
|
rules: {
|
|
@@ -372,6 +431,14 @@ var configs = {
|
|
|
372
431
|
recommended: legacyConfig
|
|
373
432
|
};
|
|
374
433
|
var rules2 = ts_recommended_default?.rules ?? plugin_default.rules;
|
|
434
|
+
var index_default = {
|
|
435
|
+
meta: {
|
|
436
|
+
name: package_default.name,
|
|
437
|
+
version: package_default.version
|
|
438
|
+
},
|
|
439
|
+
configs,
|
|
440
|
+
rules: rules2
|
|
441
|
+
};
|
|
375
442
|
// Annotate the CommonJS export names for ESM import in node:
|
|
376
443
|
0 && (module.exports = {
|
|
377
444
|
configs,
|
package/build/index.d.ts
CHANGED
|
@@ -259,4 +259,272 @@ export declare const rules: {
|
|
|
259
259
|
'wdio/no-pause': string;
|
|
260
260
|
'wdio/no-floating-promise': string;
|
|
261
261
|
};
|
|
262
|
+
declare const _default: {
|
|
263
|
+
meta: {
|
|
264
|
+
name: string;
|
|
265
|
+
version: string;
|
|
266
|
+
};
|
|
267
|
+
configs: {
|
|
268
|
+
'flat/recommended': {
|
|
269
|
+
languageOptions: {
|
|
270
|
+
globals: {
|
|
271
|
+
readonly __dirname: false;
|
|
272
|
+
readonly __filename: false;
|
|
273
|
+
readonly AbortController: false;
|
|
274
|
+
readonly AbortSignal: false;
|
|
275
|
+
readonly AsyncDisposableStack: false;
|
|
276
|
+
readonly atob: false;
|
|
277
|
+
readonly Blob: false;
|
|
278
|
+
readonly BroadcastChannel: false;
|
|
279
|
+
readonly btoa: false;
|
|
280
|
+
readonly Buffer: false;
|
|
281
|
+
readonly ByteLengthQueuingStrategy: false;
|
|
282
|
+
readonly clearImmediate: false;
|
|
283
|
+
readonly clearInterval: false;
|
|
284
|
+
readonly clearTimeout: false;
|
|
285
|
+
readonly CloseEvent: false;
|
|
286
|
+
readonly CompressionStream: false;
|
|
287
|
+
readonly console: false;
|
|
288
|
+
readonly CountQueuingStrategy: false;
|
|
289
|
+
readonly crypto: false;
|
|
290
|
+
readonly Crypto: false;
|
|
291
|
+
readonly CryptoKey: false;
|
|
292
|
+
readonly CustomEvent: false;
|
|
293
|
+
readonly DecompressionStream: false;
|
|
294
|
+
readonly DisposableStack: false;
|
|
295
|
+
readonly DOMException: false;
|
|
296
|
+
readonly ErrorEvent: false;
|
|
297
|
+
readonly Event: false;
|
|
298
|
+
readonly EventTarget: false;
|
|
299
|
+
readonly exports: true;
|
|
300
|
+
readonly fetch: false;
|
|
301
|
+
readonly File: false;
|
|
302
|
+
readonly FormData: false;
|
|
303
|
+
readonly global: false;
|
|
304
|
+
readonly Headers: false;
|
|
305
|
+
readonly localStorage: false;
|
|
306
|
+
readonly MessageChannel: false;
|
|
307
|
+
readonly MessageEvent: false;
|
|
308
|
+
readonly MessagePort: false;
|
|
309
|
+
readonly module: false;
|
|
310
|
+
readonly navigator: false;
|
|
311
|
+
readonly Navigator: false;
|
|
312
|
+
readonly performance: false;
|
|
313
|
+
readonly Performance: false;
|
|
314
|
+
readonly PerformanceEntry: false;
|
|
315
|
+
readonly PerformanceMark: false;
|
|
316
|
+
readonly PerformanceMeasure: false;
|
|
317
|
+
readonly PerformanceObserver: false;
|
|
318
|
+
readonly PerformanceObserverEntryList: false;
|
|
319
|
+
readonly PerformanceResourceTiming: false;
|
|
320
|
+
readonly process: false;
|
|
321
|
+
readonly queueMicrotask: false;
|
|
322
|
+
readonly ReadableByteStreamController: false;
|
|
323
|
+
readonly ReadableStream: false;
|
|
324
|
+
readonly ReadableStreamBYOBReader: false;
|
|
325
|
+
readonly ReadableStreamBYOBRequest: false;
|
|
326
|
+
readonly ReadableStreamDefaultController: false;
|
|
327
|
+
readonly ReadableStreamDefaultReader: false;
|
|
328
|
+
readonly Request: false;
|
|
329
|
+
readonly require: false;
|
|
330
|
+
readonly Response: false;
|
|
331
|
+
readonly sessionStorage: false;
|
|
332
|
+
readonly setImmediate: false;
|
|
333
|
+
readonly setInterval: false;
|
|
334
|
+
readonly setTimeout: false;
|
|
335
|
+
readonly Storage: false;
|
|
336
|
+
readonly structuredClone: false;
|
|
337
|
+
readonly SubtleCrypto: false;
|
|
338
|
+
readonly SuppressedError: false;
|
|
339
|
+
readonly TextDecoder: false;
|
|
340
|
+
readonly TextDecoderStream: false;
|
|
341
|
+
readonly TextEncoder: false;
|
|
342
|
+
readonly TextEncoderStream: false;
|
|
343
|
+
readonly TransformStream: false;
|
|
344
|
+
readonly TransformStreamDefaultController: false;
|
|
345
|
+
readonly URL: false;
|
|
346
|
+
readonly URLPattern: false;
|
|
347
|
+
readonly URLSearchParams: false;
|
|
348
|
+
readonly WebAssembly: false;
|
|
349
|
+
readonly WebSocket: false;
|
|
350
|
+
readonly WritableStream: false;
|
|
351
|
+
readonly WritableStreamDefaultController: false;
|
|
352
|
+
readonly WritableStreamDefaultWriter: false;
|
|
353
|
+
readonly after: false;
|
|
354
|
+
readonly afterEach: false;
|
|
355
|
+
readonly before: false;
|
|
356
|
+
readonly beforeEach: false;
|
|
357
|
+
readonly context: false;
|
|
358
|
+
readonly describe: false;
|
|
359
|
+
readonly it: false;
|
|
360
|
+
readonly mocha: false;
|
|
361
|
+
readonly run: false;
|
|
362
|
+
readonly setup: false;
|
|
363
|
+
readonly specify: false;
|
|
364
|
+
readonly suite: false;
|
|
365
|
+
readonly suiteSetup: false;
|
|
366
|
+
readonly suiteTeardown: false;
|
|
367
|
+
readonly teardown: false;
|
|
368
|
+
readonly test: false;
|
|
369
|
+
readonly xcontext: false;
|
|
370
|
+
readonly xdescribe: false;
|
|
371
|
+
readonly xit: false;
|
|
372
|
+
readonly xspecify: false;
|
|
373
|
+
readonly $: false;
|
|
374
|
+
readonly $$: false;
|
|
375
|
+
readonly browser: false;
|
|
376
|
+
readonly driver: false;
|
|
377
|
+
readonly expect: false;
|
|
378
|
+
readonly multiremotebrowser: false;
|
|
379
|
+
readonly multiRemoteBrowser: false;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
plugins: {
|
|
383
|
+
wdio: {
|
|
384
|
+
configs: {};
|
|
385
|
+
rules: {
|
|
386
|
+
'await-expect': import("eslint").Rule.RuleModule;
|
|
387
|
+
'no-debug': import("eslint").Rule.RuleModule;
|
|
388
|
+
'no-pause': import("eslint").Rule.RuleModule;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
rules: {
|
|
393
|
+
'wdio/await-expect': string;
|
|
394
|
+
'wdio/no-debug': string;
|
|
395
|
+
'wdio/no-pause': string;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
recommended: {
|
|
399
|
+
rules: {
|
|
400
|
+
'wdio/await-expect': string;
|
|
401
|
+
'wdio/no-debug': string;
|
|
402
|
+
'wdio/no-pause': string;
|
|
403
|
+
};
|
|
404
|
+
globals: {
|
|
405
|
+
readonly __dirname: false;
|
|
406
|
+
readonly __filename: false;
|
|
407
|
+
readonly AbortController: false;
|
|
408
|
+
readonly AbortSignal: false;
|
|
409
|
+
readonly AsyncDisposableStack: false;
|
|
410
|
+
readonly atob: false;
|
|
411
|
+
readonly Blob: false;
|
|
412
|
+
readonly BroadcastChannel: false;
|
|
413
|
+
readonly btoa: false;
|
|
414
|
+
readonly Buffer: false;
|
|
415
|
+
readonly ByteLengthQueuingStrategy: false;
|
|
416
|
+
readonly clearImmediate: false;
|
|
417
|
+
readonly clearInterval: false;
|
|
418
|
+
readonly clearTimeout: false;
|
|
419
|
+
readonly CloseEvent: false;
|
|
420
|
+
readonly CompressionStream: false;
|
|
421
|
+
readonly console: false;
|
|
422
|
+
readonly CountQueuingStrategy: false;
|
|
423
|
+
readonly crypto: false;
|
|
424
|
+
readonly Crypto: false;
|
|
425
|
+
readonly CryptoKey: false;
|
|
426
|
+
readonly CustomEvent: false;
|
|
427
|
+
readonly DecompressionStream: false;
|
|
428
|
+
readonly DisposableStack: false;
|
|
429
|
+
readonly DOMException: false;
|
|
430
|
+
readonly ErrorEvent: false;
|
|
431
|
+
readonly Event: false;
|
|
432
|
+
readonly EventTarget: false;
|
|
433
|
+
readonly exports: true;
|
|
434
|
+
readonly fetch: false;
|
|
435
|
+
readonly File: false;
|
|
436
|
+
readonly FormData: false;
|
|
437
|
+
readonly global: false;
|
|
438
|
+
readonly Headers: false;
|
|
439
|
+
readonly localStorage: false;
|
|
440
|
+
readonly MessageChannel: false;
|
|
441
|
+
readonly MessageEvent: false;
|
|
442
|
+
readonly MessagePort: false;
|
|
443
|
+
readonly module: false;
|
|
444
|
+
readonly navigator: false;
|
|
445
|
+
readonly Navigator: false;
|
|
446
|
+
readonly performance: false;
|
|
447
|
+
readonly Performance: false;
|
|
448
|
+
readonly PerformanceEntry: false;
|
|
449
|
+
readonly PerformanceMark: false;
|
|
450
|
+
readonly PerformanceMeasure: false;
|
|
451
|
+
readonly PerformanceObserver: false;
|
|
452
|
+
readonly PerformanceObserverEntryList: false;
|
|
453
|
+
readonly PerformanceResourceTiming: false;
|
|
454
|
+
readonly process: false;
|
|
455
|
+
readonly queueMicrotask: false;
|
|
456
|
+
readonly ReadableByteStreamController: false;
|
|
457
|
+
readonly ReadableStream: false;
|
|
458
|
+
readonly ReadableStreamBYOBReader: false;
|
|
459
|
+
readonly ReadableStreamBYOBRequest: false;
|
|
460
|
+
readonly ReadableStreamDefaultController: false;
|
|
461
|
+
readonly ReadableStreamDefaultReader: false;
|
|
462
|
+
readonly Request: false;
|
|
463
|
+
readonly require: false;
|
|
464
|
+
readonly Response: false;
|
|
465
|
+
readonly sessionStorage: false;
|
|
466
|
+
readonly setImmediate: false;
|
|
467
|
+
readonly setInterval: false;
|
|
468
|
+
readonly setTimeout: false;
|
|
469
|
+
readonly Storage: false;
|
|
470
|
+
readonly structuredClone: false;
|
|
471
|
+
readonly SubtleCrypto: false;
|
|
472
|
+
readonly SuppressedError: false;
|
|
473
|
+
readonly TextDecoder: false;
|
|
474
|
+
readonly TextDecoderStream: false;
|
|
475
|
+
readonly TextEncoder: false;
|
|
476
|
+
readonly TextEncoderStream: false;
|
|
477
|
+
readonly TransformStream: false;
|
|
478
|
+
readonly TransformStreamDefaultController: false;
|
|
479
|
+
readonly URL: false;
|
|
480
|
+
readonly URLPattern: false;
|
|
481
|
+
readonly URLSearchParams: false;
|
|
482
|
+
readonly WebAssembly: false;
|
|
483
|
+
readonly WebSocket: false;
|
|
484
|
+
readonly WritableStream: false;
|
|
485
|
+
readonly WritableStreamDefaultController: false;
|
|
486
|
+
readonly WritableStreamDefaultWriter: false;
|
|
487
|
+
readonly after: false;
|
|
488
|
+
readonly afterEach: false;
|
|
489
|
+
readonly before: false;
|
|
490
|
+
readonly beforeEach: false;
|
|
491
|
+
readonly context: false;
|
|
492
|
+
readonly describe: false;
|
|
493
|
+
readonly it: false;
|
|
494
|
+
readonly mocha: false;
|
|
495
|
+
readonly run: false;
|
|
496
|
+
readonly setup: false;
|
|
497
|
+
readonly specify: false;
|
|
498
|
+
readonly suite: false;
|
|
499
|
+
readonly suiteSetup: false;
|
|
500
|
+
readonly suiteTeardown: false;
|
|
501
|
+
readonly teardown: false;
|
|
502
|
+
readonly test: false;
|
|
503
|
+
readonly xcontext: false;
|
|
504
|
+
readonly xdescribe: false;
|
|
505
|
+
readonly xit: false;
|
|
506
|
+
readonly xspecify: false;
|
|
507
|
+
readonly $: false;
|
|
508
|
+
readonly $$: false;
|
|
509
|
+
readonly browser: false;
|
|
510
|
+
readonly driver: false;
|
|
511
|
+
readonly expect: false;
|
|
512
|
+
readonly multiremotebrowser: false;
|
|
513
|
+
readonly multiRemoteBrowser: false;
|
|
514
|
+
};
|
|
515
|
+
plugins: string[];
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
rules: {
|
|
519
|
+
'await-expect': import("eslint").Rule.RuleModule;
|
|
520
|
+
'no-debug': import("eslint").Rule.RuleModule;
|
|
521
|
+
'no-pause': import("eslint").Rule.RuleModule;
|
|
522
|
+
} | {
|
|
523
|
+
'wdio/await-expect': string;
|
|
524
|
+
'wdio/no-debug': string;
|
|
525
|
+
'wdio/no-pause': string;
|
|
526
|
+
'wdio/no-floating-promise': string;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
export default _default;
|
|
262
530
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAA;AACD,eAAO,MAAM,KAAK;;;;;;;;;CAAuC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzD,wBAOC"}
|
package/build/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var MATCHERS = [
|
|
|
32
32
|
"toHaveHref",
|
|
33
33
|
"toHaveId",
|
|
34
34
|
"toHaveLink",
|
|
35
|
+
"toHaveLocalStorageItem",
|
|
35
36
|
"toHaveSize",
|
|
36
37
|
"toHaveStyle",
|
|
37
38
|
"toHaveText",
|
|
@@ -318,6 +319,63 @@ var rules = {
|
|
|
318
319
|
};
|
|
319
320
|
var ts_recommended_default = isTypeAware ? tsRecommended() : void 0;
|
|
320
321
|
|
|
322
|
+
// package.json
|
|
323
|
+
var package_default = {
|
|
324
|
+
name: "eslint-plugin-wdio",
|
|
325
|
+
version: "9.25.0",
|
|
326
|
+
description: "Eslint rules for WebdriverIO",
|
|
327
|
+
author: "Christian Bromann <mail@bromann.dev>",
|
|
328
|
+
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/eslint-plugin-wdio",
|
|
329
|
+
license: "MIT",
|
|
330
|
+
main: "./build/index.cjs",
|
|
331
|
+
module: "./build/index.js",
|
|
332
|
+
types: "./build/index.d.ts",
|
|
333
|
+
exports: {
|
|
334
|
+
".": {
|
|
335
|
+
types: "./build/index.d.ts",
|
|
336
|
+
import: "./build/index.js",
|
|
337
|
+
require: "./build/index.cjs"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
type: "module",
|
|
341
|
+
typeScriptVersion: "3.8.3",
|
|
342
|
+
engines: {
|
|
343
|
+
node: ">=18.20.0"
|
|
344
|
+
},
|
|
345
|
+
repository: {
|
|
346
|
+
type: "git",
|
|
347
|
+
url: "git+https://github.com/webdriverio/webdriverio.git",
|
|
348
|
+
directory: "packages/eslint-plugin-wdio"
|
|
349
|
+
},
|
|
350
|
+
keywords: [
|
|
351
|
+
"eslint",
|
|
352
|
+
"eslintplugin",
|
|
353
|
+
"eslint-plugin",
|
|
354
|
+
"webdriver",
|
|
355
|
+
"wdio"
|
|
356
|
+
],
|
|
357
|
+
bugs: {
|
|
358
|
+
url: "https://github.com/webdriverio/webdriverio/issues"
|
|
359
|
+
},
|
|
360
|
+
devDependencies: {
|
|
361
|
+
"@types/estree": "^1.0.8",
|
|
362
|
+
eslint: "^9.39.2",
|
|
363
|
+
"expect-webdriverio": "^5.6.5",
|
|
364
|
+
globals: "^16.5.0",
|
|
365
|
+
"typescript-eslint": "^8.54.0"
|
|
366
|
+
},
|
|
367
|
+
peerDependencies: {
|
|
368
|
+
eslint: "^9.39.2",
|
|
369
|
+
globals: "^16.5.0",
|
|
370
|
+
"typescript-eslint": "^8.54.0"
|
|
371
|
+
},
|
|
372
|
+
peerDependenciesMeta: {
|
|
373
|
+
"typescript-eslint": {
|
|
374
|
+
optional: true
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
|
|
321
379
|
// src/index.ts
|
|
322
380
|
var legacyConfig = {
|
|
323
381
|
rules: {
|
|
@@ -334,7 +392,16 @@ var configs = {
|
|
|
334
392
|
recommended: legacyConfig
|
|
335
393
|
};
|
|
336
394
|
var rules2 = ts_recommended_default?.rules ?? plugin_default.rules;
|
|
395
|
+
var index_default = {
|
|
396
|
+
meta: {
|
|
397
|
+
name: package_default.name,
|
|
398
|
+
version: package_default.version
|
|
399
|
+
},
|
|
400
|
+
configs,
|
|
401
|
+
rules: rules2
|
|
402
|
+
};
|
|
337
403
|
export {
|
|
338
404
|
configs,
|
|
405
|
+
index_default as default,
|
|
339
406
|
rules2 as rules
|
|
340
407
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-wdio",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.26.0",
|
|
4
4
|
"description": "Eslint rules for WebdriverIO",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/eslint-plugin-wdio",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/estree": "^1.0.8",
|
|
40
40
|
"eslint": "^9.39.2",
|
|
41
|
-
"expect-webdriverio": "^5.
|
|
41
|
+
"expect-webdriverio": "^5.6.5",
|
|
42
42
|
"globals": "^16.5.0",
|
|
43
43
|
"typescript-eslint": "^8.54.0"
|
|
44
44
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"optional": true
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "974fb5ead9fe6738af6f5e2306224036de552f33"
|
|
56
56
|
}
|
package/src/constants.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import plugin from './plugin.js'
|
|
|
2
2
|
import { sharedGlobals } from './globals.js'
|
|
3
3
|
import jsRecommended from './configs/js-recommended.js'
|
|
4
4
|
import tsRecommended from './configs/ts-recommended.js'
|
|
5
|
+
import pkg from '../package.json' with { type: 'json' }
|
|
5
6
|
|
|
6
7
|
const legacyConfig = {
|
|
7
8
|
rules: {
|
|
@@ -21,3 +22,11 @@ export const configs = {
|
|
|
21
22
|
}
|
|
22
23
|
export const rules = tsRecommended?.rules ?? plugin.rules
|
|
23
24
|
|
|
25
|
+
export default {
|
|
26
|
+
meta: {
|
|
27
|
+
name: pkg.name,
|
|
28
|
+
version: pkg.version
|
|
29
|
+
},
|
|
30
|
+
configs,
|
|
31
|
+
rules
|
|
32
|
+
}
|