@dcaldeira/tooling 0.1.0 → 0.2.1

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.
Files changed (49) hide show
  1. package/README.md +34 -34
  2. package/checks/a11y.mjs +206 -206
  3. package/checks/architecture.mjs +137 -137
  4. package/checks/audit.mjs +121 -121
  5. package/checks/bundle.mjs +128 -126
  6. package/checks/dependencies.mjs +277 -277
  7. package/checks/duplication.mjs +135 -0
  8. package/checks/lint-scss.mjs +363 -349
  9. package/checks/package.mjs +30 -30
  10. package/checks/playwright-summary.mjs +53 -53
  11. package/checks/sass.mjs +67 -67
  12. package/checks/scan-secrets.mjs +58 -58
  13. package/checks/shared.mjs +86 -86
  14. package/checks/translations.mjs +55 -55
  15. package/checks/visual-compare.mjs +148 -148
  16. package/checks/visual-report-html.mjs +470 -470
  17. package/checks/visual-report.mjs +13 -13
  18. package/config.schema.json +999 -927
  19. package/configs/eslint.mjs +27 -27
  20. package/configs/knip.json +11 -11
  21. package/configs/playwright.mjs +15 -15
  22. package/configs/vitest.mjs +16 -16
  23. package/package.json +105 -105
  24. package/release/finalize.mjs +65 -65
  25. package/release/github.mjs +64 -64
  26. package/release/prepare.mjs +30 -30
  27. package/runner/browsers.mjs +73 -73
  28. package/runner/cache.mjs +121 -121
  29. package/runner/ci-plan.mjs +54 -54
  30. package/runner/cli.mjs +250 -248
  31. package/runner/config.mjs +148 -148
  32. package/runner/docs-install.mjs +93 -93
  33. package/runner/execute.mjs +298 -286
  34. package/runner/generate.mjs +122 -122
  35. package/runner/git.mjs +122 -122
  36. package/runner/graph.mjs +250 -243
  37. package/runner/insights.mjs +313 -313
  38. package/runner/provision.mjs +53 -53
  39. package/runner/repo-standard.mjs +104 -0
  40. package/runner/report.mjs +35 -35
  41. package/runner/serve-static.mjs +76 -76
  42. package/runner/setup.mjs +241 -237
  43. package/runner/summary.mjs +112 -112
  44. package/runner/watch.mjs +82 -82
  45. package/templates/ci.yml +25 -25
  46. package/templates/dependabot-merge.yml +13 -13
  47. package/templates/dependabot.yml +26 -26
  48. package/templates/pre-push +13 -13
  49. package/templates/release.yml +23 -23
@@ -1,927 +1,999 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "title": "Repository tooling",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "required": [
7
- "schemaVersion"
8
- ],
9
- "properties": {
10
- "$schema": {
11
- "type": "string"
12
- },
13
- "schemaVersion": {
14
- "const": 1
15
- },
16
- "paths": {
17
- "type": "object",
18
- "additionalProperties": false,
19
- "properties": {
20
- "docs": {
21
- "type": "array",
22
- "items": {
23
- "type": "string"
24
- }
25
- },
26
- "styles": {
27
- "type": "array",
28
- "items": {
29
- "type": "string"
30
- }
31
- },
32
- "translations": {
33
- "type": "array",
34
- "items": {
35
- "type": "string"
36
- }
37
- },
38
- "app": {
39
- "type": "array",
40
- "items": {
41
- "type": "string"
42
- }
43
- },
44
- "database": {
45
- "type": "array",
46
- "items": {
47
- "type": "string"
48
- }
49
- },
50
- "functions": {
51
- "type": "array",
52
- "items": {
53
- "type": "string"
54
- }
55
- },
56
- "workflows": {
57
- "type": "array",
58
- "items": {
59
- "type": "string"
60
- }
61
- },
62
- "tooling": {
63
- "type": "array",
64
- "items": {
65
- "type": "string"
66
- }
67
- },
68
- "dependencies": {
69
- "type": "array",
70
- "items": {
71
- "type": "string"
72
- }
73
- }
74
- }
75
- },
76
- "checks": {
77
- "type": "object",
78
- "propertyNames": {
79
- "pattern": "^[a-z][a-z0-9-]*$"
80
- },
81
- "additionalProperties": {
82
- "oneOf": [
83
- {
84
- "const": false
85
- },
86
- {
87
- "type": "object",
88
- "additionalProperties": false,
89
- "properties": {
90
- "command": {
91
- "oneOf": [
92
- {
93
- "type": "string",
94
- "minLength": 1
95
- },
96
- {
97
- "type": "array",
98
- "minItems": 1,
99
- "items": {
100
- "type": "string",
101
- "minLength": 1
102
- }
103
- }
104
- ]
105
- },
106
- "devCommand": {
107
- "oneOf": [
108
- {
109
- "type": "string",
110
- "minLength": 1
111
- },
112
- {
113
- "type": "array",
114
- "minItems": 1,
115
- "items": {
116
- "type": "string",
117
- "minLength": 1
118
- }
119
- }
120
- ]
121
- },
122
- "groups": {
123
- "type": "array",
124
- "items": {
125
- "enum": [
126
- "docs",
127
- "styles",
128
- "translations",
129
- "app",
130
- "database",
131
- "functions",
132
- "workflows",
133
- "tooling",
134
- "dependencies",
135
- "unknown"
136
- ]
137
- }
138
- },
139
- "profiles": {
140
- "type": "array",
141
- "items": {
142
- "enum": [
143
- "dev",
144
- "push",
145
- "ci"
146
- ]
147
- }
148
- },
149
- "dependsOn": {
150
- "type": "array",
151
- "items": {
152
- "type": "string"
153
- }
154
- },
155
- "cwd": {
156
- "type": "string"
157
- },
158
- "tools": {
159
- "type": "array",
160
- "items": {
161
- "type": "string"
162
- }
163
- },
164
- "platforms": {
165
- "type": "array",
166
- "items": {
167
- "enum": [
168
- "linux",
169
- "win32",
170
- "darwin",
171
- "aix",
172
- "freebsd",
173
- "openbsd",
174
- "sunos",
175
- "android"
176
- ]
177
- }
178
- },
179
- "devFiles": {
180
- "type": "array",
181
- "items": {
182
- "type": "string"
183
- }
184
- },
185
- "devAllCommand": {
186
- "oneOf": [
187
- {
188
- "type": "string",
189
- "minLength": 1
190
- },
191
- {
192
- "type": "array",
193
- "minItems": 1,
194
- "items": {
195
- "type": "string",
196
- "minLength": 1
197
- }
198
- }
199
- ]
200
- },
201
- "resources": {
202
- "type": "array",
203
- "items": {
204
- "type": "string",
205
- "minLength": 1
206
- }
207
- },
208
- "workspaces": {
209
- "type": "array",
210
- "items": {
211
- "type": "string",
212
- "minLength": 1
213
- }
214
- },
215
- "cache": {
216
- "oneOf": [
217
- {
218
- "type": "boolean"
219
- },
220
- {
221
- "type": "object",
222
- "additionalProperties": false,
223
- "required": [
224
- "inputs"
225
- ],
226
- "properties": {
227
- "inputs": {
228
- "type": "array",
229
- "items": {
230
- "type": "string",
231
- "minLength": 1
232
- },
233
- "minItems": 1
234
- }
235
- }
236
- }
237
- ]
238
- },
239
- "extends": {
240
- "enum": [
241
- "format",
242
- "lint",
243
- "styles",
244
- "types",
245
- "unit",
246
- "translations",
247
- "build",
248
- "size",
249
- "deadcode",
250
- "security",
251
- "e2e",
252
- "visual",
253
- "lighthouse",
254
- "workflows",
255
- "architecture",
256
- "a11y",
257
- "dependency-consistency",
258
- "sass"
259
- ]
260
- }
261
- }
262
- }
263
- ]
264
- }
265
- },
266
- "environment": {
267
- "type": "array",
268
- "items": {
269
- "type": "string"
270
- }
271
- },
272
- "translations": {
273
- "type": "object",
274
- "required": [
275
- "directory",
276
- "source"
277
- ],
278
- "additionalProperties": false,
279
- "properties": {
280
- "directory": {
281
- "type": "string",
282
- "minLength": 1
283
- },
284
- "source": {
285
- "type": "string",
286
- "minLength": 1
287
- },
288
- "pluralExceptions": {
289
- "type": "array",
290
- "items": {
291
- "type": "string"
292
- }
293
- }
294
- }
295
- },
296
- "styles": {
297
- "type": "object",
298
- "additionalProperties": false,
299
- "properties": {
300
- "source": {
301
- "type": "string",
302
- "minLength": 1
303
- },
304
- "maxDepth": {
305
- "type": "integer",
306
- "minimum": 1
307
- },
308
- "maxSpecificity": {
309
- "type": "array",
310
- "minItems": 3,
311
- "maxItems": 3,
312
- "items": {
313
- "type": "integer",
314
- "minimum": 0
315
- }
316
- },
317
- "preset": {
318
- "enum": [
319
- "standard",
320
- "rookie"
321
- ]
322
- },
323
- "rules": {
324
- "type": "object",
325
- "additionalProperties": false,
326
- "properties": {
327
- "bem": {
328
- "type": "boolean"
329
- },
330
- "componentName": {
331
- "type": "boolean"
332
- },
333
- "palette": {
334
- "type": "boolean"
335
- }
336
- }
337
- },
338
- "colourTokenPaths": {
339
- "type": "array",
340
- "items": {
341
- "type": "string",
342
- "minLength": 1
343
- }
344
- }
345
- }
346
- },
347
- "budgets": {
348
- "type": "object",
349
- "additionalProperties": false,
350
- "properties": {
351
- "bundle": {
352
- "type": "object",
353
- "required": [
354
- "dist",
355
- "initialKB",
356
- "chunkKB"
357
- ],
358
- "additionalProperties": false,
359
- "properties": {
360
- "dist": {
361
- "type": "string",
362
- "minLength": 1
363
- },
364
- "initialKB": {
365
- "type": "number",
366
- "exclusiveMinimum": 0
367
- },
368
- "chunkKB": {
369
- "type": "number",
370
- "exclusiveMinimum": 0
371
- },
372
- "vendors": {
373
- "type": "array",
374
- "items": {
375
- "type": "array",
376
- "minItems": 3,
377
- "maxItems": 3,
378
- "prefixItems": [
379
- {
380
- "type": "string",
381
- "minLength": 1
382
- },
383
- {
384
- "type": "string",
385
- "minLength": 1
386
- },
387
- {
388
- "type": "number",
389
- "exclusiveMinimum": 0
390
- }
391
- ]
392
- }
393
- }
394
- }
395
- }
396
- }
397
- },
398
- "release": {
399
- "type": "object",
400
- "additionalProperties": false,
401
- "required": [
402
- "prepare",
403
- "files"
404
- ],
405
- "properties": {
406
- "prepare": {
407
- "type": "array",
408
- "minItems": 1,
409
- "items": {
410
- "type": "string"
411
- }
412
- },
413
- "files": {
414
- "type": "array",
415
- "items": {
416
- "type": "string"
417
- }
418
- }
419
- }
420
- },
421
- "inputs": {
422
- "type": "array",
423
- "items": {
424
- "type": "string"
425
- }
426
- },
427
- "execution": {
428
- "type": "object",
429
- "additionalProperties": false,
430
- "properties": {
431
- "concurrency": {
432
- "type": "integer",
433
- "minimum": 1,
434
- "maximum": 16
435
- },
436
- "typeScriptBuildInfo": {
437
- "type": "array",
438
- "items": {
439
- "type": "string",
440
- "minLength": 1
441
- }
442
- },
443
- "checkCache": {
444
- "type": "boolean"
445
- }
446
- }
447
- },
448
- "workspaces": {
449
- "type": "object",
450
- "propertyNames": {
451
- "pattern": "^[a-z][a-z0-9-]*$"
452
- },
453
- "additionalProperties": {
454
- "type": "object",
455
- "additionalProperties": false,
456
- "required": [
457
- "paths"
458
- ],
459
- "properties": {
460
- "paths": {
461
- "type": "array",
462
- "items": {
463
- "type": "string",
464
- "minLength": 1
465
- },
466
- "minItems": 1
467
- },
468
- "dependsOn": {
469
- "type": "array",
470
- "items": {
471
- "type": "string",
472
- "minLength": 1
473
- }
474
- }
475
- }
476
- }
477
- },
478
- "architecture": {
479
- "type": "object",
480
- "additionalProperties": false,
481
- "properties": {
482
- "include": {
483
- "type": "array",
484
- "items": {
485
- "type": "string",
486
- "minLength": 1
487
- }
488
- },
489
- "exclude": {
490
- "type": "array",
491
- "items": {
492
- "type": "string",
493
- "minLength": 1
494
- }
495
- },
496
- "tsconfig": {
497
- "type": "string",
498
- "minLength": 1
499
- },
500
- "cycles": {
501
- "type": "boolean"
502
- },
503
- "layers": {
504
- "type": "array",
505
- "items": {
506
- "type": "object",
507
- "additionalProperties": false,
508
- "properties": {
509
- "name": {
510
- "type": "string",
511
- "minLength": 1
512
- },
513
- "paths": {
514
- "type": "array",
515
- "items": {
516
- "type": "string",
517
- "minLength": 1
518
- },
519
- "minItems": 1
520
- },
521
- "allow": {
522
- "type": "array",
523
- "items": {
524
- "type": "string",
525
- "minLength": 1
526
- }
527
- }
528
- },
529
- "required": [
530
- "name",
531
- "paths",
532
- "allow"
533
- ]
534
- }
535
- },
536
- "modules": {
537
- "type": "array",
538
- "items": {
539
- "type": "object",
540
- "additionalProperties": false,
541
- "properties": {
542
- "name": {
543
- "type": "string",
544
- "minLength": 1
545
- },
546
- "root": {
547
- "type": "string",
548
- "minLength": 1
549
- },
550
- "public": {
551
- "type": "array",
552
- "items": {
553
- "type": "string",
554
- "minLength": 1
555
- },
556
- "minItems": 1
557
- }
558
- },
559
- "required": [
560
- "name",
561
- "root",
562
- "public"
563
- ]
564
- }
565
- }
566
- }
567
- },
568
- "dependencyConsistency": {
569
- "type": "object",
570
- "additionalProperties": false,
571
- "properties": {
572
- "manifests": {
573
- "type": "array",
574
- "items": {
575
- "type": "string",
576
- "minLength": 1
577
- },
578
- "minItems": 1
579
- },
580
- "include": {
581
- "type": "array",
582
- "items": {
583
- "type": "string",
584
- "minLength": 1
585
- }
586
- },
587
- "exclude": {
588
- "type": "array",
589
- "items": {
590
- "type": "string",
591
- "minLength": 1
592
- }
593
- },
594
- "strict": {
595
- "type": "array",
596
- "items": {
597
- "type": "string",
598
- "minLength": 1
599
- }
600
- },
601
- "ignore": {
602
- "type": "array",
603
- "items": {
604
- "type": "string",
605
- "minLength": 1
606
- }
607
- },
608
- "singleVersion": {
609
- "type": "array",
610
- "items": {
611
- "type": "string",
612
- "minLength": 1
613
- }
614
- },
615
- "expected": {
616
- "type": "object",
617
- "additionalProperties": {
618
- "type": "string",
619
- "minLength": 1
620
- }
621
- },
622
- "checkImports": {
623
- "type": "boolean"
624
- }
625
- }
626
- },
627
- "generators": {
628
- "type": "object",
629
- "additionalProperties": false,
630
- "properties": {
631
- "components": {
632
- "type": "string",
633
- "minLength": 1
634
- },
635
- "hooks": {
636
- "type": "string",
637
- "minLength": 1
638
- },
639
- "designSystem": {
640
- "type": "object",
641
- "additionalProperties": false,
642
- "properties": {
643
- "package": {
644
- "type": "string",
645
- "minLength": 1,
646
- "pattern": "^(?:@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$"
647
- },
648
- "component": {
649
- "type": "string",
650
- "minLength": 1,
651
- "pattern": "^[A-Z][A-Za-z0-9]*$"
652
- }
653
- },
654
- "required": [
655
- "package",
656
- "component"
657
- ]
658
- }
659
- }
660
- },
661
- "a11y": {
662
- "type": "object",
663
- "additionalProperties": false,
664
- "properties": {
665
- "baseURL": {
666
- "type": "string",
667
- "minLength": 1
668
- },
669
- "routes": {
670
- "type": "array",
671
- "minItems": 1,
672
- "items": {
673
- "type": "object",
674
- "additionalProperties": false,
675
- "properties": {
676
- "path": {
677
- "type": "string",
678
- "minLength": 1,
679
- "pattern": "^/(?!/)"
680
- },
681
- "name": {
682
- "type": "string",
683
- "minLength": 1
684
- },
685
- "waitFor": {
686
- "type": "string",
687
- "minLength": 1
688
- },
689
- "include": {
690
- "type": "array",
691
- "items": {
692
- "type": "string",
693
- "minLength": 1
694
- }
695
- },
696
- "exclude": {
697
- "type": "array",
698
- "items": {
699
- "type": "string",
700
- "minLength": 1
701
- }
702
- },
703
- "actions": {
704
- "type": "array",
705
- "items": {
706
- "type": "object",
707
- "additionalProperties": false,
708
- "properties": {
709
- "type": {
710
- "enum": [
711
- "click",
712
- "fill",
713
- "press"
714
- ]
715
- },
716
- "selector": {
717
- "type": "string",
718
- "minLength": 1
719
- },
720
- "value": {
721
- "type": "string"
722
- }
723
- },
724
- "required": [
725
- "type",
726
- "selector"
727
- ]
728
- }
729
- }
730
- },
731
- "required": [
732
- "path"
733
- ]
734
- }
735
- },
736
- "tags": {
737
- "type": "array",
738
- "items": {
739
- "type": "string",
740
- "minLength": 1
741
- },
742
- "minItems": 1
743
- },
744
- "failImpacts": {
745
- "type": "array",
746
- "items": {
747
- "enum": [
748
- "minor",
749
- "moderate",
750
- "serious",
751
- "critical"
752
- ]
753
- }
754
- },
755
- "viewports": {
756
- "type": "array",
757
- "minItems": 1,
758
- "items": {
759
- "type": "object",
760
- "additionalProperties": false,
761
- "properties": {
762
- "name": {
763
- "type": "string",
764
- "minLength": 1,
765
- "pattern": "^[a-zA-Z0-9_-]+$"
766
- },
767
- "width": {
768
- "type": "integer",
769
- "minimum": 1,
770
- "maximum": 10000
771
- },
772
- "height": {
773
- "type": "integer",
774
- "minimum": 1,
775
- "maximum": 10000
776
- }
777
- },
778
- "required": [
779
- "name",
780
- "width",
781
- "height"
782
- ]
783
- }
784
- },
785
- "storageState": {
786
- "type": "string",
787
- "minLength": 1
788
- },
789
- "executablePath": {
790
- "type": "string",
791
- "minLength": 1
792
- },
793
- "timeout": {
794
- "type": "integer",
795
- "minimum": 100,
796
- "maximum": 120000
797
- },
798
- "server": {
799
- "type": "object",
800
- "additionalProperties": false,
801
- "properties": {
802
- "command": {
803
- "type": "array",
804
- "items": {
805
- "type": "string",
806
- "minLength": 1
807
- },
808
- "minItems": 1
809
- },
810
- "cwd": {
811
- "type": "string",
812
- "minLength": 1
813
- },
814
- "url": {
815
- "type": "string",
816
- "minLength": 1
817
- },
818
- "timeout": {
819
- "type": "integer",
820
- "minimum": 100,
821
- "maximum": 120000
822
- }
823
- },
824
- "required": [
825
- "command"
826
- ]
827
- }
828
- },
829
- "required": [
830
- "baseURL",
831
- "routes"
832
- ]
833
- },
834
- "reporting": {
835
- "type": "object",
836
- "additionalProperties": false,
837
- "properties": {
838
- "coverage": {
839
- "type": "array",
840
- "items": {
841
- "type": "string",
842
- "minLength": 1
843
- }
844
- },
845
- "unit": {
846
- "type": "array",
847
- "items": {
848
- "type": "string",
849
- "minLength": 1
850
- }
851
- },
852
- "playwright": {
853
- "type": "array",
854
- "items": {
855
- "type": "string",
856
- "minLength": 1
857
- }
858
- },
859
- "slowTestMilliseconds": {
860
- "type": "number",
861
- "minimum": 0
862
- }
863
- }
864
- },
865
- "history": {
866
- "type": "object",
867
- "additionalProperties": false,
868
- "properties": {
869
- "enabled": {
870
- "type": "boolean"
871
- },
872
- "limit": {
873
- "type": "integer",
874
- "minimum": 1,
875
- "maximum": 1000
876
- },
877
- "regressionPercent": {
878
- "type": "number",
879
- "minimum": 0
880
- }
881
- }
882
- },
883
- "sass": {
884
- "type": "object",
885
- "additionalProperties": false,
886
- "required": [
887
- "entrypoints"
888
- ],
889
- "properties": {
890
- "source": {
891
- "type": "string",
892
- "minLength": 1
893
- },
894
- "entrypoints": {
895
- "type": "array",
896
- "minItems": 1,
897
- "items": {
898
- "type": "string",
899
- "minLength": 1
900
- }
901
- },
902
- "include": {
903
- "type": "array",
904
- "minItems": 1,
905
- "items": {
906
- "type": "string",
907
- "minLength": 1
908
- }
909
- },
910
- "exclude": {
911
- "type": "array",
912
- "items": {
913
- "type": "string",
914
- "minLength": 1
915
- }
916
- },
917
- "importantExceptions": {
918
- "type": "array",
919
- "items": {
920
- "type": "string",
921
- "minLength": 1
922
- }
923
- }
924
- }
925
- }
926
- }
927
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Repository tooling",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schemaVersion"
8
+ ],
9
+ "properties": {
10
+ "$schema": {
11
+ "type": "string"
12
+ },
13
+ "schemaVersion": {
14
+ "const": 1
15
+ },
16
+ "paths": {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "docs": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "styles": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "translations": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "app": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "database": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "functions": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "workflows": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ "tooling": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "dependencies": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "string"
72
+ }
73
+ }
74
+ }
75
+ },
76
+ "checks": {
77
+ "type": "object",
78
+ "propertyNames": {
79
+ "pattern": "^[a-z][a-z0-9-]*$"
80
+ },
81
+ "additionalProperties": {
82
+ "oneOf": [
83
+ {
84
+ "const": false
85
+ },
86
+ {
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "properties": {
90
+ "command": {
91
+ "oneOf": [
92
+ {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ {
97
+ "type": "array",
98
+ "minItems": 1,
99
+ "items": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ }
103
+ }
104
+ ]
105
+ },
106
+ "devCommand": {
107
+ "oneOf": [
108
+ {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ {
113
+ "type": "array",
114
+ "minItems": 1,
115
+ "items": {
116
+ "type": "string",
117
+ "minLength": 1
118
+ }
119
+ }
120
+ ]
121
+ },
122
+ "groups": {
123
+ "type": "array",
124
+ "items": {
125
+ "enum": [
126
+ "docs",
127
+ "styles",
128
+ "translations",
129
+ "app",
130
+ "database",
131
+ "functions",
132
+ "workflows",
133
+ "tooling",
134
+ "dependencies",
135
+ "unknown"
136
+ ]
137
+ }
138
+ },
139
+ "profiles": {
140
+ "type": "array",
141
+ "items": {
142
+ "enum": [
143
+ "dev",
144
+ "push",
145
+ "ci"
146
+ ]
147
+ }
148
+ },
149
+ "dependsOn": {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "cwd": {
156
+ "type": "string"
157
+ },
158
+ "tools": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "platforms": {
165
+ "type": "array",
166
+ "items": {
167
+ "enum": [
168
+ "linux",
169
+ "win32",
170
+ "darwin",
171
+ "aix",
172
+ "freebsd",
173
+ "openbsd",
174
+ "sunos",
175
+ "android"
176
+ ]
177
+ }
178
+ },
179
+ "devFiles": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string"
183
+ }
184
+ },
185
+ "devAllCommand": {
186
+ "oneOf": [
187
+ {
188
+ "type": "string",
189
+ "minLength": 1
190
+ },
191
+ {
192
+ "type": "array",
193
+ "minItems": 1,
194
+ "items": {
195
+ "type": "string",
196
+ "minLength": 1
197
+ }
198
+ }
199
+ ]
200
+ },
201
+ "resources": {
202
+ "type": "array",
203
+ "items": {
204
+ "type": "string",
205
+ "minLength": 1
206
+ }
207
+ },
208
+ "workspaces": {
209
+ "type": "array",
210
+ "items": {
211
+ "type": "string",
212
+ "minLength": 1
213
+ }
214
+ },
215
+ "cache": {
216
+ "oneOf": [
217
+ {
218
+ "type": "boolean"
219
+ },
220
+ {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "inputs"
225
+ ],
226
+ "properties": {
227
+ "inputs": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "string",
231
+ "minLength": 1
232
+ },
233
+ "minItems": 1
234
+ }
235
+ }
236
+ }
237
+ ]
238
+ },
239
+ "extends": {
240
+ "enum": [
241
+ "format",
242
+ "lint",
243
+ "styles",
244
+ "types",
245
+ "unit",
246
+ "translations",
247
+ "build",
248
+ "size",
249
+ "deadcode",
250
+ "security",
251
+ "e2e",
252
+ "visual",
253
+ "lighthouse",
254
+ "workflows",
255
+ "architecture",
256
+ "a11y",
257
+ "dependency-consistency",
258
+ "sass",
259
+ "duplication"
260
+ ]
261
+ }
262
+ }
263
+ }
264
+ ]
265
+ }
266
+ },
267
+ "environment": {
268
+ "type": "array",
269
+ "items": {
270
+ "type": "string"
271
+ }
272
+ },
273
+ "translations": {
274
+ "type": "object",
275
+ "required": [
276
+ "directory",
277
+ "source"
278
+ ],
279
+ "additionalProperties": false,
280
+ "properties": {
281
+ "directory": {
282
+ "type": "string",
283
+ "minLength": 1
284
+ },
285
+ "source": {
286
+ "type": "string",
287
+ "minLength": 1
288
+ },
289
+ "pluralExceptions": {
290
+ "type": "array",
291
+ "items": {
292
+ "type": "string"
293
+ }
294
+ }
295
+ }
296
+ },
297
+ "styles": {
298
+ "type": "object",
299
+ "additionalProperties": false,
300
+ "properties": {
301
+ "source": {
302
+ "type": "string",
303
+ "minLength": 1
304
+ },
305
+ "maxDepth": {
306
+ "type": "integer",
307
+ "minimum": 1
308
+ },
309
+ "maxSpecificity": {
310
+ "type": "array",
311
+ "minItems": 3,
312
+ "maxItems": 3,
313
+ "items": {
314
+ "type": "integer",
315
+ "minimum": 0
316
+ }
317
+ },
318
+ "preset": {
319
+ "enum": [
320
+ "standard",
321
+ "rookie"
322
+ ]
323
+ },
324
+ "rules": {
325
+ "type": "object",
326
+ "additionalProperties": false,
327
+ "properties": {
328
+ "bem": {
329
+ "type": "boolean"
330
+ },
331
+ "componentName": {
332
+ "type": "boolean"
333
+ },
334
+ "palette": {
335
+ "type": "boolean"
336
+ },
337
+ "layoutCss": {
338
+ "type": "boolean",
339
+ "description": "Report flex layout (display:flex, gap, justify-content, align-items …) in *.module.scss: use the layout primitive (Stack)."
340
+ }
341
+ }
342
+ },
343
+ "layoutPaths": {
344
+ "type": "array",
345
+ "description": "Globs of shared layout components exempt from layoutCss.",
346
+ "items": {
347
+ "type": "string",
348
+ "minLength": 1
349
+ }
350
+ },
351
+ "colourTokenPaths": {
352
+ "type": "array",
353
+ "items": {
354
+ "type": "string",
355
+ "minLength": 1
356
+ }
357
+ }
358
+ }
359
+ },
360
+ "budgets": {
361
+ "type": "object",
362
+ "additionalProperties": false,
363
+ "properties": {
364
+ "bundle": {
365
+ "type": "object",
366
+ "required": [
367
+ "dist",
368
+ "initialKB",
369
+ "chunkKB"
370
+ ],
371
+ "additionalProperties": false,
372
+ "properties": {
373
+ "dist": {
374
+ "type": "string",
375
+ "minLength": 1
376
+ },
377
+ "initialKB": {
378
+ "type": "number",
379
+ "exclusiveMinimum": 0
380
+ },
381
+ "chunkKB": {
382
+ "type": "number",
383
+ "exclusiveMinimum": 0
384
+ },
385
+ "vendors": {
386
+ "type": "array",
387
+ "items": {
388
+ "type": "array",
389
+ "minItems": 3,
390
+ "maxItems": 3,
391
+ "prefixItems": [
392
+ {
393
+ "type": "string",
394
+ "minLength": 1
395
+ },
396
+ {
397
+ "type": "string",
398
+ "minLength": 1
399
+ },
400
+ {
401
+ "type": "number",
402
+ "exclusiveMinimum": 0
403
+ }
404
+ ]
405
+ }
406
+ },
407
+ "files": {
408
+ "type": "array",
409
+ "items": {
410
+ "type": "array",
411
+ "minItems": 3,
412
+ "maxItems": 3,
413
+ "prefixItems": [
414
+ {
415
+ "type": "string",
416
+ "minLength": 1
417
+ },
418
+ {
419
+ "type": "string",
420
+ "minLength": 1
421
+ },
422
+ {
423
+ "type": "number",
424
+ "exclusiveMinimum": 0
425
+ }
426
+ ]
427
+ }
428
+ }
429
+ }
430
+ }
431
+ }
432
+ },
433
+ "release": {
434
+ "type": "object",
435
+ "additionalProperties": false,
436
+ "required": [
437
+ "prepare",
438
+ "files"
439
+ ],
440
+ "properties": {
441
+ "prepare": {
442
+ "type": "array",
443
+ "minItems": 1,
444
+ "items": {
445
+ "type": "string"
446
+ }
447
+ },
448
+ "files": {
449
+ "type": "array",
450
+ "items": {
451
+ "type": "string"
452
+ }
453
+ }
454
+ }
455
+ },
456
+ "inputs": {
457
+ "type": "array",
458
+ "items": {
459
+ "type": "string"
460
+ }
461
+ },
462
+ "execution": {
463
+ "type": "object",
464
+ "additionalProperties": false,
465
+ "properties": {
466
+ "concurrency": {
467
+ "type": "integer",
468
+ "minimum": 1,
469
+ "maximum": 16
470
+ },
471
+ "typeScriptBuildInfo": {
472
+ "type": "array",
473
+ "items": {
474
+ "type": "string",
475
+ "minLength": 1
476
+ }
477
+ },
478
+ "checkCache": {
479
+ "type": "boolean"
480
+ }
481
+ }
482
+ },
483
+ "workspaces": {
484
+ "type": "object",
485
+ "propertyNames": {
486
+ "pattern": "^[a-z][a-z0-9-]*$"
487
+ },
488
+ "additionalProperties": {
489
+ "type": "object",
490
+ "additionalProperties": false,
491
+ "required": [
492
+ "paths"
493
+ ],
494
+ "properties": {
495
+ "paths": {
496
+ "type": "array",
497
+ "items": {
498
+ "type": "string",
499
+ "minLength": 1
500
+ },
501
+ "minItems": 1
502
+ },
503
+ "dependsOn": {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "string",
507
+ "minLength": 1
508
+ }
509
+ }
510
+ }
511
+ }
512
+ },
513
+ "architecture": {
514
+ "type": "object",
515
+ "additionalProperties": false,
516
+ "properties": {
517
+ "include": {
518
+ "type": "array",
519
+ "items": {
520
+ "type": "string",
521
+ "minLength": 1
522
+ }
523
+ },
524
+ "exclude": {
525
+ "type": "array",
526
+ "items": {
527
+ "type": "string",
528
+ "minLength": 1
529
+ }
530
+ },
531
+ "tsconfig": {
532
+ "type": "string",
533
+ "minLength": 1
534
+ },
535
+ "cycles": {
536
+ "type": "boolean"
537
+ },
538
+ "layers": {
539
+ "type": "array",
540
+ "items": {
541
+ "type": "object",
542
+ "additionalProperties": false,
543
+ "properties": {
544
+ "name": {
545
+ "type": "string",
546
+ "minLength": 1
547
+ },
548
+ "paths": {
549
+ "type": "array",
550
+ "items": {
551
+ "type": "string",
552
+ "minLength": 1
553
+ },
554
+ "minItems": 1
555
+ },
556
+ "allow": {
557
+ "type": "array",
558
+ "items": {
559
+ "type": "string",
560
+ "minLength": 1
561
+ }
562
+ }
563
+ },
564
+ "required": [
565
+ "name",
566
+ "paths",
567
+ "allow"
568
+ ]
569
+ }
570
+ },
571
+ "modules": {
572
+ "type": "array",
573
+ "items": {
574
+ "type": "object",
575
+ "additionalProperties": false,
576
+ "properties": {
577
+ "name": {
578
+ "type": "string",
579
+ "minLength": 1
580
+ },
581
+ "root": {
582
+ "type": "string",
583
+ "minLength": 1
584
+ },
585
+ "public": {
586
+ "type": "array",
587
+ "items": {
588
+ "type": "string",
589
+ "minLength": 1
590
+ },
591
+ "minItems": 1
592
+ }
593
+ },
594
+ "required": [
595
+ "name",
596
+ "root",
597
+ "public"
598
+ ]
599
+ }
600
+ }
601
+ }
602
+ },
603
+ "dependencyConsistency": {
604
+ "type": "object",
605
+ "additionalProperties": false,
606
+ "properties": {
607
+ "manifests": {
608
+ "type": "array",
609
+ "items": {
610
+ "type": "string",
611
+ "minLength": 1
612
+ },
613
+ "minItems": 1
614
+ },
615
+ "include": {
616
+ "type": "array",
617
+ "items": {
618
+ "type": "string",
619
+ "minLength": 1
620
+ }
621
+ },
622
+ "exclude": {
623
+ "type": "array",
624
+ "items": {
625
+ "type": "string",
626
+ "minLength": 1
627
+ }
628
+ },
629
+ "strict": {
630
+ "type": "array",
631
+ "items": {
632
+ "type": "string",
633
+ "minLength": 1
634
+ }
635
+ },
636
+ "ignore": {
637
+ "type": "array",
638
+ "items": {
639
+ "type": "string",
640
+ "minLength": 1
641
+ }
642
+ },
643
+ "singleVersion": {
644
+ "type": "array",
645
+ "items": {
646
+ "type": "string",
647
+ "minLength": 1
648
+ }
649
+ },
650
+ "expected": {
651
+ "type": "object",
652
+ "additionalProperties": {
653
+ "type": "string",
654
+ "minLength": 1
655
+ }
656
+ },
657
+ "checkImports": {
658
+ "type": "boolean"
659
+ }
660
+ }
661
+ },
662
+ "generators": {
663
+ "type": "object",
664
+ "additionalProperties": false,
665
+ "properties": {
666
+ "components": {
667
+ "type": "string",
668
+ "minLength": 1
669
+ },
670
+ "hooks": {
671
+ "type": "string",
672
+ "minLength": 1
673
+ },
674
+ "designSystem": {
675
+ "type": "object",
676
+ "additionalProperties": false,
677
+ "properties": {
678
+ "package": {
679
+ "type": "string",
680
+ "minLength": 1,
681
+ "pattern": "^(?:@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$"
682
+ },
683
+ "component": {
684
+ "type": "string",
685
+ "minLength": 1,
686
+ "pattern": "^[A-Z][A-Za-z0-9]*$"
687
+ }
688
+ },
689
+ "required": [
690
+ "package",
691
+ "component"
692
+ ]
693
+ }
694
+ }
695
+ },
696
+ "a11y": {
697
+ "type": "object",
698
+ "additionalProperties": false,
699
+ "properties": {
700
+ "baseURL": {
701
+ "type": "string",
702
+ "minLength": 1
703
+ },
704
+ "routes": {
705
+ "type": "array",
706
+ "minItems": 1,
707
+ "items": {
708
+ "type": "object",
709
+ "additionalProperties": false,
710
+ "properties": {
711
+ "path": {
712
+ "type": "string",
713
+ "minLength": 1,
714
+ "pattern": "^/(?!/)"
715
+ },
716
+ "name": {
717
+ "type": "string",
718
+ "minLength": 1
719
+ },
720
+ "waitFor": {
721
+ "type": "string",
722
+ "minLength": 1
723
+ },
724
+ "include": {
725
+ "type": "array",
726
+ "items": {
727
+ "type": "string",
728
+ "minLength": 1
729
+ }
730
+ },
731
+ "exclude": {
732
+ "type": "array",
733
+ "items": {
734
+ "type": "string",
735
+ "minLength": 1
736
+ }
737
+ },
738
+ "actions": {
739
+ "type": "array",
740
+ "items": {
741
+ "type": "object",
742
+ "additionalProperties": false,
743
+ "properties": {
744
+ "type": {
745
+ "enum": [
746
+ "click",
747
+ "fill",
748
+ "press"
749
+ ]
750
+ },
751
+ "selector": {
752
+ "type": "string",
753
+ "minLength": 1
754
+ },
755
+ "value": {
756
+ "type": "string"
757
+ }
758
+ },
759
+ "required": [
760
+ "type",
761
+ "selector"
762
+ ]
763
+ }
764
+ }
765
+ },
766
+ "required": [
767
+ "path"
768
+ ]
769
+ }
770
+ },
771
+ "tags": {
772
+ "type": "array",
773
+ "items": {
774
+ "type": "string",
775
+ "minLength": 1
776
+ },
777
+ "minItems": 1
778
+ },
779
+ "failImpacts": {
780
+ "type": "array",
781
+ "items": {
782
+ "enum": [
783
+ "minor",
784
+ "moderate",
785
+ "serious",
786
+ "critical"
787
+ ]
788
+ }
789
+ },
790
+ "viewports": {
791
+ "type": "array",
792
+ "minItems": 1,
793
+ "items": {
794
+ "type": "object",
795
+ "additionalProperties": false,
796
+ "properties": {
797
+ "name": {
798
+ "type": "string",
799
+ "minLength": 1,
800
+ "pattern": "^[a-zA-Z0-9_-]+$"
801
+ },
802
+ "width": {
803
+ "type": "integer",
804
+ "minimum": 1,
805
+ "maximum": 10000
806
+ },
807
+ "height": {
808
+ "type": "integer",
809
+ "minimum": 1,
810
+ "maximum": 10000
811
+ }
812
+ },
813
+ "required": [
814
+ "name",
815
+ "width",
816
+ "height"
817
+ ]
818
+ }
819
+ },
820
+ "storageState": {
821
+ "type": "string",
822
+ "minLength": 1
823
+ },
824
+ "executablePath": {
825
+ "type": "string",
826
+ "minLength": 1
827
+ },
828
+ "timeout": {
829
+ "type": "integer",
830
+ "minimum": 100,
831
+ "maximum": 120000
832
+ },
833
+ "server": {
834
+ "type": "object",
835
+ "additionalProperties": false,
836
+ "properties": {
837
+ "command": {
838
+ "type": "array",
839
+ "items": {
840
+ "type": "string",
841
+ "minLength": 1
842
+ },
843
+ "minItems": 1
844
+ },
845
+ "cwd": {
846
+ "type": "string",
847
+ "minLength": 1
848
+ },
849
+ "url": {
850
+ "type": "string",
851
+ "minLength": 1
852
+ },
853
+ "timeout": {
854
+ "type": "integer",
855
+ "minimum": 100,
856
+ "maximum": 120000
857
+ }
858
+ },
859
+ "required": [
860
+ "command"
861
+ ]
862
+ }
863
+ },
864
+ "required": [
865
+ "baseURL",
866
+ "routes"
867
+ ]
868
+ },
869
+ "reporting": {
870
+ "type": "object",
871
+ "additionalProperties": false,
872
+ "properties": {
873
+ "coverage": {
874
+ "type": "array",
875
+ "items": {
876
+ "type": "string",
877
+ "minLength": 1
878
+ }
879
+ },
880
+ "unit": {
881
+ "type": "array",
882
+ "items": {
883
+ "type": "string",
884
+ "minLength": 1
885
+ }
886
+ },
887
+ "playwright": {
888
+ "type": "array",
889
+ "items": {
890
+ "type": "string",
891
+ "minLength": 1
892
+ }
893
+ },
894
+ "slowTestMilliseconds": {
895
+ "type": "number",
896
+ "minimum": 0
897
+ }
898
+ }
899
+ },
900
+ "history": {
901
+ "type": "object",
902
+ "additionalProperties": false,
903
+ "properties": {
904
+ "enabled": {
905
+ "type": "boolean"
906
+ },
907
+ "limit": {
908
+ "type": "integer",
909
+ "minimum": 1,
910
+ "maximum": 1000
911
+ },
912
+ "regressionPercent": {
913
+ "type": "number",
914
+ "minimum": 0
915
+ }
916
+ }
917
+ },
918
+ "duplication": {
919
+ "type": "object",
920
+ "additionalProperties": false,
921
+ "description": "Opt-in copy/paste detection with jscpd. By default only clones touching the changed files fail, in every profile.",
922
+ "properties": {
923
+ "paths": {
924
+ "type": "array",
925
+ "items": {
926
+ "type": "string",
927
+ "minLength": 1
928
+ },
929
+ "minItems": 1
930
+ },
931
+ "minTokens": {
932
+ "type": "integer",
933
+ "minimum": 10
934
+ },
935
+ "scope": {
936
+ "enum": [
937
+ "changed",
938
+ "all"
939
+ ],
940
+ "description": "changed (default): only clones touching changed files fail; all: every clone fails."
941
+ },
942
+ "ignore": {
943
+ "type": "array",
944
+ "items": {
945
+ "type": "string",
946
+ "minLength": 1
947
+ }
948
+ }
949
+ }
950
+ },
951
+ "repoStandard": {
952
+ "type": "boolean",
953
+ "description": "Doctor checks the shared repo standard: AGENTS.md shape, CLAUDE.md, .claude/settings.json enabling core@dcaldeira, no .ai kit or ai-memory."
954
+ },
955
+ "sass": {
956
+ "type": "object",
957
+ "additionalProperties": false,
958
+ "required": [
959
+ "entrypoints"
960
+ ],
961
+ "properties": {
962
+ "source": {
963
+ "type": "string",
964
+ "minLength": 1
965
+ },
966
+ "entrypoints": {
967
+ "type": "array",
968
+ "minItems": 1,
969
+ "items": {
970
+ "type": "string",
971
+ "minLength": 1
972
+ }
973
+ },
974
+ "include": {
975
+ "type": "array",
976
+ "minItems": 1,
977
+ "items": {
978
+ "type": "string",
979
+ "minLength": 1
980
+ }
981
+ },
982
+ "exclude": {
983
+ "type": "array",
984
+ "items": {
985
+ "type": "string",
986
+ "minLength": 1
987
+ }
988
+ },
989
+ "importantExceptions": {
990
+ "type": "array",
991
+ "items": {
992
+ "type": "string",
993
+ "minLength": 1
994
+ }
995
+ }
996
+ }
997
+ }
998
+ }
999
+ }