@@ -88,10 +88,41 @@ describe("blockESLintPlugin", () => {
88
88
},
89
89
"block": [Function],
90
90
},
91
+ {
92
+ "addons": {
93
+ "defaultUsage": [
94
+ "Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):
95
+
96
+ \`\`\`shell
97
+ npm i test-repository -D
98
+ \`\`\`
99
+
100
+ \`\`\`ts
101
+ import testRepository from "test-repository";
102
+
103
+ export default [
104
+ // (other plugins)
105
+ testRepository.configs.recommended, // 👈
106
+ ];
107
+ \`\`\`
108
+
109
+ ### Rules
110
+
111
+ These are all set to \`"error"\` in the recommended config:
112
+
113
+ <!-- begin auto-generated rules list --><!-- end auto-generated rules list -->",
114
+ ],
115
+ },
116
+ "block": [Function],
117
+ },
91
118
{
92
119
"addons": {
93
120
"properties": {
121
+ "dependencies": {
122
+ "@typescript-eslint/utils": "^8.29.0",
123
+ },
94
124
"devDependencies": {
125
+ "@typescript-eslint/rule-tester": "8.29.1",
95
126
"eslint-doc-generator": "2.1.0",
96
127
"eslint-plugin-eslint-plugin": "6.4.0",
97
128
},
@@ -131,6 +162,20 @@ describe("blockESLintPlugin", () => {
131
162
export default config;
132
163
",
133
164
},
165
+ "scripts": [
166
+ {
167
+ "commands": [
168
+ "pnpm build",
169
+ ],
170
+ "phase": 2,
171
+ },
172
+ {
173
+ "commands": [
174
+ "pnpm eslint-doc-generator --init-rule-docs",
175
+ ],
176
+ "phase": 3,
177
+ },
178
+ ],
134
179
}
135
180
` ) ;
136
181
} ) ;
@@ -221,10 +266,41 @@ describe("blockESLintPlugin", () => {
221
266
},
222
267
"block": [Function],
223
268
},
269
+ {
270
+ "addons": {
271
+ "defaultUsage": [
272
+ "Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):
273
+
274
+ \`\`\`shell
275
+ npm i test-repository -D
276
+ \`\`\`
277
+
278
+ \`\`\`ts
279
+ import testRepository from "test-repository";
280
+
281
+ export default [
282
+ // (other plugins)
283
+ testRepository.configs.recommended, // 👈
284
+ ];
285
+ \`\`\`
286
+
287
+ ### Rules
288
+
289
+ These are all set to \`"error"\` in the recommended config:
290
+
291
+ <!-- begin auto-generated rules list --><!-- end auto-generated rules list -->",
292
+ ],
293
+ },
294
+ "block": [Function],
295
+ },
224
296
{
225
297
"addons": {
226
298
"properties": {
299
+ "dependencies": {
300
+ "@typescript-eslint/utils": "^8.29.0",
301
+ },
227
302
"devDependencies": {
303
+ "@typescript-eslint/rule-tester": "8.29.1",
228
304
"eslint-doc-generator": "2.1.0",
229
305
"eslint-plugin-eslint-plugin": "6.4.0",
230
306
},
@@ -264,6 +340,20 @@ describe("blockESLintPlugin", () => {
264
340
export default config;
265
341
",
266
342
},
343
+ "scripts": [
344
+ {
345
+ "commands": [
346
+ "pnpm build",
347
+ ],
348
+ "phase": 2,
349
+ },
350
+ {
351
+ "commands": [
352
+ "pnpm eslint-doc-generator --init-rule-docs",
353
+ ],
354
+ "phase": 3,
355
+ },
356
+ ],
267
357
}
268
358
` ) ;
269
359
} ) ;
@@ -352,10 +442,41 @@ describe("blockESLintPlugin", () => {
352
442
},
353
443
"block": [Function],
354
444
},
445
+ {
446
+ "addons": {
447
+ "defaultUsage": [
448
+ "Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):
449
+
450
+ \`\`\`shell
451
+ npm i test-repository -D
452
+ \`\`\`
453
+
454
+ \`\`\`ts
455
+ import testRepository from "test-repository";
456
+
457
+ export default [
458
+ // (other plugins)
459
+ testRepository.configs.recommended, // 👈
460
+ ];
461
+ \`\`\`
462
+
463
+ ### Rules
464
+
465
+ These are all set to \`"error"\` in the recommended config:
466
+
467
+ <!-- begin auto-generated rules list --><!-- end auto-generated rules list -->",
468
+ ],
469
+ },
470
+ "block": [Function],
471
+ },
355
472
{
356
473
"addons": {
357
474
"properties": {
475
+ "dependencies": {
476
+ "@typescript-eslint/utils": "^8.29.0",
477
+ },
358
478
"devDependencies": {
479
+ "@typescript-eslint/rule-tester": "8.29.1",
359
480
"eslint-doc-generator": "2.1.0",
360
481
"eslint-plugin-eslint-plugin": "6.4.0",
361
482
},
@@ -429,7 +550,7 @@ describe("blockESLintPlugin", () => {
429
550
export default plugin;
430
551
",
431
552
"rules": {
432
- "example .test.ts": "import { rule } from "./enums.js";
553
+ "enums .test.ts": "import { rule } from "./enums.js";
433
554
import { ruleTester } from "./ruleTester.js";
434
555
435
556
ruleTester.run("enums", rule, {
@@ -450,7 +571,7 @@ describe("blockESLintPlugin", () => {
450
571
valid: [\`const Values = {};\`, \`const Values = {} as const;\`],
451
572
});
452
573
",
453
- "example .ts": "import { createRule } from "../utils.js";
574
+ "enums .ts": "import { createRule } from "../utils.js";
454
575
455
576
export const rule = createRule({
456
577
create(context) {
@@ -477,10 +598,10 @@ describe("blockESLintPlugin", () => {
477
598
name: "enums",
478
599
});
479
600
",
480
- "index.ts": "import { rule as example } from "./example .js";
601
+ "index.ts": "import { rule as enums } from "./enums .js";
481
602
482
603
export const rules = {
483
- example ,
604
+ enums ,
484
605
};
485
606
",
486
607
"ruleTester.ts": "import { RuleTester } from "@typescript-eslint/rule-tester";
@@ -503,6 +624,20 @@ describe("blockESLintPlugin", () => {
503
624
",
504
625
},
505
626
},
627
+ "scripts": [
628
+ {
629
+ "commands": [
630
+ "pnpm build",
631
+ ],
632
+ "phase": 2,
633
+ },
634
+ {
635
+ "commands": [
636
+ "pnpm eslint-doc-generator --init-rule-docs",
637
+ ],
638
+ "phase": 3,
639
+ },
640
+ ],
506
641
}
507
642
` ) ;
508
643
} ) ;
@@ -596,10 +731,41 @@ describe("blockESLintPlugin", () => {
596
731
},
597
732
"block": [Function],
598
733
},
734
+ {
735
+ "addons": {
736
+ "defaultUsage": [
737
+ "Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):
738
+
739
+ \`\`\`shell
740
+ npm i test-repository -D
741
+ \`\`\`
742
+
743
+ \`\`\`ts
744
+ import testRepository from "test-repository";
745
+
746
+ export default [
747
+ // (other plugins)
748
+ testRepository.configs.recommended, // 👈
749
+ ];
750
+ \`\`\`
751
+
752
+ ### Rules
753
+
754
+ These are all set to \`"error"\` in the recommended config:
755
+
756
+ <!-- begin auto-generated rules list --><!-- end auto-generated rules list -->",
757
+ ],
758
+ },
759
+ "block": [Function],
760
+ },
599
761
{
600
762
"addons": {
601
763
"properties": {
764
+ "dependencies": {
765
+ "@typescript-eslint/utils": "^8.29.0",
766
+ },
602
767
"devDependencies": {
768
+ "@typescript-eslint/rule-tester": "8.29.1",
603
769
"eslint-doc-generator": "2.1.0",
604
770
"eslint-plugin-eslint-plugin": "6.4.0",
605
771
},
@@ -640,6 +806,20 @@ describe("blockESLintPlugin", () => {
640
806
export default config;
641
807
",
642
808
},
809
+ "scripts": [
810
+ {
811
+ "commands": [
812
+ "pnpm build",
813
+ ],
814
+ "phase": 2,
815
+ },
816
+ {
817
+ "commands": [
818
+ "pnpm eslint-doc-generator --init-rule-docs",
819
+ ],
820
+ "phase": 3,
821
+ },
822
+ ],
643
823
}
644
824
` ) ;
645
825
} ) ;
0 commit comments