@jimmy.codes/eslint-config 5.9.0 → 5.10.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/dist/index.d.ts CHANGED
@@ -109,6 +109,11 @@ declare function playwrightConfig(): Promise<{
109
109
  "playwright/no-useless-not": "error";
110
110
  "playwright/no-wait-for-selector": "error";
111
111
  "playwright/no-wait-for-timeout": "error";
112
+ "playwright/valid-title": ["error", {
113
+ mustMatch: {
114
+ it: string;
115
+ };
116
+ }];
112
117
  };
113
118
  ignores?: string[];
114
119
  language?: string;
@@ -237,7 +242,11 @@ declare function vitestConfig(): Promise<{
237
242
  "vitest/require-top-level-describe": "off";
238
243
  "vitest/valid-expect": "error";
239
244
  "vitest/valid-expect-in-promise": "error";
240
- "vitest/valid-title": "error";
245
+ "vitest/valid-title": ["error", {
246
+ mustMatch: {
247
+ it: string;
248
+ };
249
+ }];
241
250
  "vitest/expect-expect": "error";
242
251
  "vitest/valid-describe-callback": "error";
243
252
  "vitest/require-local-test-context-for-concurrent-snapshots": "error";
@@ -291,6 +300,11 @@ declare function jestConfig(): Promise<{
291
300
  "jest/require-to-throw-message": "error";
292
301
  "jest/require-top-level-describe": "off";
293
302
  "jest/unbound-method": "off";
303
+ "jest/valid-title": ["error", {
304
+ mustMatch: {
305
+ it: string;
306
+ };
307
+ }];
294
308
  };
295
309
  files: Array<string | string[]>;
296
310
  ignores: string[];
@@ -17615,10 +17629,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
17615
17629
  "unicorn/no-array-reduce": "off";
17616
17630
  "unicorn/no-null": "off";
17617
17631
  "unicorn/no-process-exit": "off";
17618
- "unicorn/no-useless-undefined": ["error", {
17619
- checkArguments: false;
17620
- checkArrowFunctionBody: false;
17621
- }];
17632
+ "unicorn/no-useless-undefined": "off";
17622
17633
  "unicorn/prefer-node-protocol": "off";
17623
17634
  "unicorn/prevent-abbreviations": "off";
17624
17635
  };
@@ -19677,6 +19688,11 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
19677
19688
  "playwright/no-useless-not": "error";
19678
19689
  "playwright/no-wait-for-selector": "error";
19679
19690
  "playwright/no-wait-for-timeout": "error";
19691
+ "playwright/valid-title": ["error", {
19692
+ mustMatch: {
19693
+ it: string;
19694
+ };
19695
+ }];
19680
19696
  };
19681
19697
  ignores?: string[];
19682
19698
  language?: string;
package/dist/index.js CHANGED
@@ -512,10 +512,7 @@ var unicornRules = {
512
512
  "unicorn/no-array-reduce": "off",
513
513
  "unicorn/no-null": "off",
514
514
  "unicorn/no-process-exit": "off",
515
- "unicorn/no-useless-undefined": [
516
- "error",
517
- { checkArguments: false, checkArrowFunctionBody: false }
518
- ],
515
+ "unicorn/no-useless-undefined": "off",
519
516
  "unicorn/prefer-node-protocol": "off",
520
517
  "unicorn/prevent-abbreviations": "off"
521
518
  };
@@ -585,10 +582,10 @@ var defineConfig = async ({
585
582
  isReactEnabled && unwrap(import("./react-6ERTZG2I.js")),
586
583
  isTanstackQueryEnabled && unwrap(import("./tanstack-query-P4IBOLDK.js")),
587
584
  isAstroEnabled && unwrap(import("./astro-Z5RFF624.js")),
588
- isJestEnabled && unwrap(import("./jest-AHG2WRSU.js")),
589
- isVitestEnabled && unwrap(import("./vitest-YI6KNRZE.js")),
585
+ isJestEnabled && unwrap(import("./jest-7NR7TDOP.js")),
586
+ isVitestEnabled && unwrap(import("./vitest-LSKPTQM4.js")),
590
587
  isTestingLibraryEnabled && unwrap(import("./testing-library-7RTMAEOX.js")),
591
- isPlaywrightEnabled && unwrap(import("./playwright-U4PCWDYV.js")),
588
+ isPlaywrightEnabled && unwrap(import("./playwright-N6LFQ4OJ.js")),
592
589
  isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
593
590
  isNextjsEnabled && unwrap(import("./nextjs-7V464KOE.js"))
594
591
  ]);
@@ -49,8 +49,16 @@ var jestRules = async () => {
49
49
  "jest/require-hook": "error",
50
50
  "jest/require-to-throw-message": "error",
51
51
  "jest/require-top-level-describe": "off",
52
- "jest/unbound-method": "off"
52
+ "jest/unbound-method": "off",
53
53
  // requires typescript
54
+ "jest/valid-title": [
55
+ "error",
56
+ {
57
+ mustMatch: {
58
+ it: "^should"
59
+ }
60
+ }
61
+ ]
54
62
  };
55
63
  };
56
64
 
@@ -26,7 +26,15 @@ var playwrightRules = async () => {
26
26
  "playwright/no-useless-await": "error",
27
27
  "playwright/no-useless-not": "error",
28
28
  "playwright/no-wait-for-selector": "error",
29
- "playwright/no-wait-for-timeout": "error"
29
+ "playwright/no-wait-for-timeout": "error",
30
+ "playwright/valid-title": [
31
+ "error",
32
+ {
33
+ mustMatch: {
34
+ it: "^should"
35
+ }
36
+ }
37
+ ]
30
38
  };
31
39
  };
32
40
 
@@ -63,7 +63,14 @@ var vitestRules = async () => {
63
63
  // "vitest/unbound-method": "off", // requires typescript, missing https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
64
64
  "vitest/valid-expect": "error",
65
65
  "vitest/valid-expect-in-promise": "error",
66
- "vitest/valid-title": "error"
66
+ "vitest/valid-title": [
67
+ "error",
68
+ {
69
+ mustMatch: {
70
+ it: "^should"
71
+ }
72
+ }
73
+ ]
67
74
  };
68
75
  };
69
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "description": "A pragmatic and opinionated ESLint config for modern development.",
5
5
  "keywords": [
6
6
  "eslint",