@tcy/eslint-rules 1.6.4 → 1.8.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.
Files changed (54) hide show
  1. package/coverage/clover.xml +103 -4
  2. package/coverage/coverage-final.json +2 -0
  3. package/coverage/lcov-report/index.html +34 -19
  4. package/coverage/lcov-report/src/array-elements-per-line.js.html +1 -1
  5. package/coverage/lcov-report/src/back/back.js.html +1 -1
  6. package/coverage/lcov-report/src/back/http.js.html +1 -1
  7. package/coverage/lcov-report/src/back/index.html +1 -1
  8. package/coverage/lcov-report/src/back/recommended.js.html +1 -1
  9. package/coverage/lcov-report/src/bin/eslint-cache-guard.js.html +298 -0
  10. package/coverage/lcov-report/src/bin/index.html +116 -0
  11. package/coverage/lcov-report/src/client/client.js.html +5 -2
  12. package/coverage/lcov-report/src/client/index.html +1 -1
  13. package/coverage/lcov-report/src/client/recommended.js.html +1 -1
  14. package/coverage/lcov-report/src/decorator-type-enforcement.js.html +1 -1
  15. package/coverage/lcov-report/src/enforce-tailwind-important.js.html +1 -1
  16. package/coverage/lcov-report/src/export-specifiers-per-line.js.html +1 -1
  17. package/coverage/lcov-report/src/import-specifiers-per-line.js.html +1 -1
  18. package/coverage/lcov-report/src/index.html +24 -9
  19. package/coverage/lcov-report/src/index.js.html +1 -1
  20. package/coverage/lcov-report/src/jsx-boolean-shorthand.js.html +1 -1
  21. package/coverage/lcov-report/src/jsx-expression-string-literals.js.html +1 -1
  22. package/coverage/lcov-report/src/jsx-ref-string-exists.js.html +1 -1
  23. package/coverage/lcov-report/src/plugin.js.html +8 -2
  24. package/coverage/lcov-report/src/recommended.js.html +1 -1
  25. package/coverage/lcov-report/src/require-fragment-key.js.html +787 -0
  26. package/coverage/lcov-report/src/route-dto-required.js.html +1 -1
  27. package/coverage/lcov-report/src/v-model-name-match.js.html +1 -1
  28. package/coverage/lcov-report/src/vuejs-define-component.js.html +1 -1
  29. package/coverage/lcov-report/src/vuejs-define-workspace.js.html +1 -1
  30. package/coverage/lcov.info +249 -0
  31. package/decl/array-elements-per-line.d.ts +13 -13
  32. package/decl/back/back.d.ts +225 -9
  33. package/decl/bin/eslint-cache-guard.d.ts +16 -0
  34. package/decl/client/client.d.ts +226 -9
  35. package/decl/decorator-type-enforcement.d.ts +13 -13
  36. package/decl/enforce-tailwind-important.d.ts +20 -17
  37. package/decl/export-specifiers-per-line.d.ts +11 -11
  38. package/decl/import-specifiers-per-line.d.ts +11 -11
  39. package/decl/index.d.ts +2 -2
  40. package/decl/jsx-boolean-shorthand.d.ts +11 -11
  41. package/decl/jsx-expression-string-literals.d.ts +11 -11
  42. package/decl/jsx-ref-string-exists.d.ts +14 -14
  43. package/decl/plugin.d.ts +26 -0
  44. package/decl/require-fragment-key.d.ts +69 -0
  45. package/decl/route-dto-required.d.ts +15 -15
  46. package/decl/v-model-name-match.d.ts +14 -14
  47. package/decl/vuejs-define-component.d.ts +11 -11
  48. package/decl/vuejs-define-workspace.d.ts +11 -11
  49. package/package.json +10 -7
  50. package/src/bin/eslint-cache-guard.js +71 -0
  51. package/src/client/client.js +1 -0
  52. package/src/plugin.js +2 -0
  53. package/src/require-fragment-key.js +234 -0
  54. package/tests/require-fragment-key.spec.js +160 -0
@@ -298,7 +298,7 @@ export default {
298
298
  <div class='footer quiet pad2 space-top1 center small'>
299
299
  Code coverage generated by
300
300
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
301
- at 2026-06-25T08:18:47.669Z
301
+ at 2026-09-08T14:12:35.933Z
302
302
  </div>
303
303
  <script src="../prettify.js"></script>
304
304
  <script>
@@ -289,7 +289,7 @@
289
289
  <div class='footer quiet pad2 space-top1 center small'>
290
290
  Code coverage generated by
291
291
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
292
- at 2026-06-25T08:18:47.669Z
292
+ at 2026-09-08T14:12:35.933Z
293
293
  </div>
294
294
  <script src="../prettify.js"></script>
295
295
  <script>
@@ -328,7 +328,7 @@ export default {
328
328
  <div class='footer quiet pad2 space-top1 center small'>
329
329
  Code coverage generated by
330
330
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
331
- at 2026-06-25T08:18:47.669Z
331
+ at 2026-09-08T14:12:35.933Z
332
332
  </div>
333
333
  <script src="../prettify.js"></script>
334
334
  <script>
@@ -265,7 +265,7 @@ export default {
265
265
  <div class='footer quiet pad2 space-top1 center small'>
266
266
  Code coverage generated by
267
267
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
268
- at 2026-06-25T08:18:47.669Z
268
+ at 2026-09-08T14:12:35.933Z
269
269
  </div>
270
270
  <script src="../prettify.js"></script>
271
271
  <script>
@@ -572,6 +572,207 @@ BRF:0
572
572
  BRH:0
573
573
  end_of_record
574
574
  TN:
575
+ SF:src/require-fragment-key.js
576
+ FN:35,(anonymous_0)
577
+ FN:45,(anonymous_1)
578
+ FN:51,(anonymous_2)
579
+ FN:57,(anonymous_3)
580
+ FN:71,(anonymous_4)
581
+ FN:86,(anonymous_5)
582
+ FN:104,(anonymous_6)
583
+ FN:137,(anonymous_7)
584
+ FN:147,(anonymous_8)
585
+ FN:171,(anonymous_9)
586
+ FN:221,(anonymous_10)
587
+ FN:224,(anonymous_11)
588
+ FNF:12
589
+ FNH:9
590
+ FNDA:69,(anonymous_0)
591
+ FNDA:3,(anonymous_1)
592
+ FNDA:13,(anonymous_2)
593
+ FNDA:12,(anonymous_3)
594
+ FNDA:11,(anonymous_4)
595
+ FNDA:10,(anonymous_5)
596
+ FNDA:19,(anonymous_6)
597
+ FNDA:22,(anonymous_7)
598
+ FNDA:0,(anonymous_8)
599
+ FNDA:65,(anonymous_9)
600
+ FNDA:0,(anonymous_10)
601
+ FNDA:0,(anonymous_11)
602
+ DA:24,1
603
+ DA:26,1
604
+ DA:35,1
605
+ DA:36,69
606
+ DA:37,69
607
+ DA:38,51
608
+ DA:40,51
609
+ DA:41,51
610
+ DA:42,51
611
+ DA:44,4
612
+ DA:45,3
613
+ DA:51,1
614
+ DA:52,13
615
+ DA:53,13
616
+ DA:54,8
617
+ DA:57,1
618
+ DA:58,12
619
+ DA:59,12
620
+ DA:60,8
621
+ DA:61,0
622
+ DA:63,8
623
+ DA:64,4
624
+ DA:66,4
625
+ DA:67,4
626
+ DA:71,1
627
+ DA:72,11
628
+ DA:74,5
629
+ DA:75,5
630
+ DA:76,4
631
+ DA:78,1
632
+ DA:86,1
633
+ DA:87,10
634
+ DA:88,10
635
+ DA:104,1
636
+ DA:105,19
637
+ DA:106,19
638
+ DA:107,19
639
+ DA:109,19
640
+ DA:110,43
641
+ DA:118,12
642
+ DA:119,12
643
+ DA:120,12
644
+ DA:123,8
645
+ DA:124,8
646
+ DA:125,8
647
+ DA:126,8
648
+ DA:129,4
649
+ DA:130,4
650
+ DA:131,4
651
+ DA:132,4
652
+ DA:137,22
653
+ DA:138,9
654
+ DA:147,0
655
+ DA:148,0
656
+ DA:159,10
657
+ DA:162,0
658
+ DA:165,0
659
+ DA:171,1
660
+ DA:172,65
661
+ DA:179,17
662
+ DA:181,17
663
+ DA:183,14
664
+ DA:189,5
665
+ DA:192,9
666
+ DA:222,0
667
+ DA:224,0
668
+ DA:225,0
669
+ DA:226,0
670
+ DA:229,0
671
+ LF:69
672
+ LH:59
673
+ BRDA:36,0,0,0
674
+ BRDA:36,0,1,69
675
+ BRDA:37,1,0,18
676
+ BRDA:37,1,1,51
677
+ BRDA:38,2,0,0
678
+ BRDA:38,2,1,51
679
+ BRDA:41,3,0,0
680
+ BRDA:41,3,1,51
681
+ BRDA:42,4,0,47
682
+ BRDA:42,4,1,4
683
+ BRDA:45,5,0,3
684
+ BRDA:45,5,1,2
685
+ BRDA:45,5,2,1
686
+ BRDA:52,6,0,0
687
+ BRDA:52,6,1,13
688
+ BRDA:53,7,0,5
689
+ BRDA:53,7,1,8
690
+ BRDA:58,8,0,0
691
+ BRDA:58,8,1,12
692
+ BRDA:59,9,0,4
693
+ BRDA:59,9,1,8
694
+ BRDA:59,10,0,12
695
+ BRDA:59,10,1,8
696
+ BRDA:60,11,0,0
697
+ BRDA:60,11,1,8
698
+ BRDA:61,12,0,0
699
+ BRDA:61,12,1,0
700
+ BRDA:63,13,0,4
701
+ BRDA:63,13,1,4
702
+ BRDA:64,14,0,4
703
+ BRDA:64,14,1,4
704
+ BRDA:66,15,0,0
705
+ BRDA:66,15,1,4
706
+ BRDA:72,16,0,6
707
+ BRDA:72,16,1,5
708
+ BRDA:75,17,0,4
709
+ BRDA:75,17,1,1
710
+ BRDA:75,18,0,5
711
+ BRDA:75,18,1,1
712
+ BRDA:79,19,0,1
713
+ BRDA:79,19,1,1
714
+ BRDA:79,19,2,1
715
+ BRDA:79,19,3,1
716
+ BRDA:89,20,0,10
717
+ BRDA:89,20,1,10
718
+ BRDA:89,20,2,3
719
+ BRDA:89,20,3,3
720
+ BRDA:89,20,4,3
721
+ BRDA:89,20,5,3
722
+ BRDA:110,21,0,8
723
+ BRDA:110,21,1,8
724
+ BRDA:110,21,2,8
725
+ BRDA:110,21,3,8
726
+ BRDA:110,21,4,8
727
+ BRDA:110,21,5,10
728
+ BRDA:110,21,6,12
729
+ BRDA:110,21,7,8
730
+ BRDA:110,21,8,4
731
+ BRDA:110,21,9,9
732
+ BRDA:110,21,10,9
733
+ BRDA:110,21,11,0
734
+ BRDA:110,21,12,9
735
+ BRDA:110,21,13,9
736
+ BRDA:110,21,14,10
737
+ BRDA:110,21,15,0
738
+ BRDA:123,22,0,8
739
+ BRDA:123,22,1,0
740
+ BRDA:123,23,0,8
741
+ BRDA:123,23,1,0
742
+ BRDA:129,24,0,4
743
+ BRDA:129,24,1,0
744
+ BRDA:129,25,0,4
745
+ BRDA:129,25,1,2
746
+ BRDA:137,26,0,22
747
+ BRDA:137,26,1,13
748
+ BRDA:147,27,0,0
749
+ BRDA:147,27,1,0
750
+ BRDA:159,28,0,3
751
+ BRDA:159,28,1,7
752
+ BRDA:171,29,0,60
753
+ BRDA:171,30,0,60
754
+ BRDA:172,31,0,48
755
+ BRDA:172,31,1,17
756
+ BRDA:176,32,0,9
757
+ BRDA:177,33,0,9
758
+ BRDA:178,34,0,9
759
+ BRDA:181,35,0,3
760
+ BRDA:181,35,1,14
761
+ BRDA:183,36,0,5
762
+ BRDA:183,36,1,9
763
+ BRDA:184,37,0,14
764
+ BRDA:184,37,1,8
765
+ BRDA:184,37,2,7
766
+ BRDA:184,37,3,6
767
+ BRDA:184,37,4,5
768
+ BRDA:222,38,0,0
769
+ BRDA:222,38,1,0
770
+ BRDA:226,39,0,0
771
+ BRDA:226,39,1,0
772
+ BRF:99
773
+ BRH:79
774
+ end_of_record
775
+ TN:
575
776
  SF:src/route-dto-required.js
576
777
  FN:1,(anonymous_0)
577
778
  FN:12,(anonymous_1)
@@ -842,6 +1043,54 @@ BRF:0
842
1043
  BRH:0
843
1044
  end_of_record
844
1045
  TN:
1046
+ SF:src/bin/eslint-cache-guard.js
1047
+ FN:47,(anonymous_0)
1048
+ FN:48,(anonymous_1)
1049
+ FN:49,(anonymous_2)
1050
+ FN:63,(anonymous_3)
1051
+ FN:64,(anonymous_4)
1052
+ FNF:5
1053
+ FNH:0
1054
+ FNDA:0,(anonymous_0)
1055
+ FNDA:0,(anonymous_1)
1056
+ FNDA:0,(anonymous_2)
1057
+ FNDA:0,(anonymous_3)
1058
+ FNDA:0,(anonymous_4)
1059
+ DA:25,0
1060
+ DA:28,0
1061
+ DA:36,0
1062
+ DA:37,0
1063
+ DA:39,0
1064
+ DA:44,0
1065
+ DA:46,0
1066
+ DA:47,0
1067
+ DA:48,0
1068
+ DA:50,0
1069
+ DA:51,0
1070
+ DA:54,0
1071
+ DA:56,0
1072
+ DA:57,0
1073
+ DA:59,0
1074
+ DA:62,0
1075
+ DA:63,0
1076
+ DA:64,0
1077
+ DA:66,0
1078
+ DA:68,0
1079
+ DA:69,0
1080
+ LF:21
1081
+ LH:0
1082
+ BRDA:57,0,0,0
1083
+ BRDA:57,0,1,0
1084
+ BRDA:59,1,0,0
1085
+ BRDA:59,1,1,0
1086
+ BRDA:63,2,0,0
1087
+ BRDA:63,2,1,0
1088
+ BRDA:68,3,0,0
1089
+ BRDA:68,3,1,0
1090
+ BRF:8
1091
+ BRH:0
1092
+ end_of_record
1093
+ TN:
845
1094
  SF:src/client/client.js
846
1095
  FNF:0
847
1096
  FNH:0
@@ -1,16 +1,16 @@
1
- declare namespace _default {
2
- namespace meta {
3
- let type: string;
4
- namespace docs {
5
- let description: string;
6
- let category: string;
7
- let recommended: boolean;
8
- }
9
- let fixable: string;
10
- let schema: never[];
11
- }
12
- function create(context: any): {
1
+ declare const _default: {
2
+ meta: {
3
+ type: string;
4
+ docs: {
5
+ description: string;
6
+ category: string;
7
+ recommended: boolean;
8
+ };
9
+ fixable: string;
10
+ schema: never[];
11
+ };
12
+ create(context: any): {
13
13
  ArrayExpression(node: any): void;
14
14
  };
15
- }
15
+ };
16
16
  export default _default;
@@ -1,10 +1,227 @@
1
- declare namespace _default {
2
- namespace plugins {
3
- namespace tcy {
4
- export { pluginConfig as rules };
5
- }
6
- }
7
- let rules: {
1
+ declare const _default: {
2
+ plugins: {
3
+ tcy: {
4
+ rules: {
5
+ 'import-specifiers-per-line': {
6
+ meta: {
7
+ type: string;
8
+ docs: {
9
+ description: string;
10
+ };
11
+ fixable: string;
12
+ schema: {
13
+ type: string;
14
+ properties: {
15
+ maxSpecifiers: {
16
+ type: string;
17
+ default: number;
18
+ };
19
+ maxLen: {
20
+ type: string;
21
+ default: number;
22
+ };
23
+ };
24
+ additionalProperties: boolean;
25
+ }[];
26
+ };
27
+ create(context: any): {
28
+ ImportDeclaration(node: any): void;
29
+ };
30
+ };
31
+ 'array-elements-per-line': {
32
+ meta: {
33
+ type: string;
34
+ docs: {
35
+ description: string;
36
+ category: string;
37
+ recommended: boolean;
38
+ };
39
+ fixable: string;
40
+ schema: never[];
41
+ };
42
+ create(context: any): {
43
+ ArrayExpression(node: any): void;
44
+ };
45
+ };
46
+ 'export-specifiers-per-line': {
47
+ meta: {
48
+ type: string;
49
+ docs: {
50
+ description: string;
51
+ };
52
+ fixable: string;
53
+ schema: never[];
54
+ };
55
+ create(context: any): {
56
+ ExportNamedDeclaration(node: any): void;
57
+ };
58
+ };
59
+ 'jsx-boolean-shorthand': {
60
+ meta: {
61
+ type: string;
62
+ docs: {
63
+ description: string;
64
+ };
65
+ fixable: string;
66
+ schema: never[];
67
+ };
68
+ create(context: any): {
69
+ JSXAttribute(node: any): void;
70
+ };
71
+ };
72
+ 'jsx-expression-string-literals': {
73
+ meta: {
74
+ type: string;
75
+ docs: {
76
+ description: string;
77
+ };
78
+ fixable: string;
79
+ schema: never[];
80
+ };
81
+ create(context: any): {
82
+ JSXAttribute(node: any): void;
83
+ };
84
+ };
85
+ 'jsx-ref-string-exists': {
86
+ meta: {
87
+ type: string;
88
+ docs: {
89
+ description: string;
90
+ };
91
+ messages: {
92
+ missingRef: string;
93
+ noServices: string;
94
+ };
95
+ schema: never[];
96
+ };
97
+ create(context: any): {
98
+ JSXAttribute(node: any): void;
99
+ };
100
+ };
101
+ 'enforce-tailwind-important': {
102
+ meta: {
103
+ type: string;
104
+ docs: {
105
+ description: string;
106
+ recommended: boolean;
107
+ };
108
+ fixable: string;
109
+ schema: never[];
110
+ messages: {
111
+ missingImportant: string;
112
+ };
113
+ };
114
+ create(context: any): {
115
+ JSXAttribute(node: any): void;
116
+ VariableDeclarator(node: any): void;
117
+ };
118
+ };
119
+ 'v-model-name-match': {
120
+ meta: {
121
+ type: string;
122
+ docs: {
123
+ description: string;
124
+ recommended: boolean;
125
+ };
126
+ schema: never[];
127
+ messages: {
128
+ mismatch: string;
129
+ };
130
+ };
131
+ create(context: any): {
132
+ JSXOpeningElement(node: any): void;
133
+ };
134
+ };
135
+ 'decorator-type-enforcement': {
136
+ meta: {
137
+ type: string;
138
+ docs: {
139
+ description: string;
140
+ category: string;
141
+ recommended: boolean;
142
+ };
143
+ fixable: string;
144
+ schema: never[];
145
+ };
146
+ create(context: any): {
147
+ PropertyDefinition(node: any): void;
148
+ };
149
+ };
150
+ 'vuejs-define-component': {
151
+ meta: {
152
+ type: string;
153
+ docs: {
154
+ description: string;
155
+ recommended: boolean;
156
+ };
157
+ schema: never[];
158
+ };
159
+ create(context: any): {
160
+ ExportDefaultDeclaration(node: any): void;
161
+ };
162
+ };
163
+ 'vuejs-define-workspace': {
164
+ meta: {
165
+ type: string;
166
+ docs: {
167
+ description: string;
168
+ recommended: boolean;
169
+ };
170
+ schema: never[];
171
+ };
172
+ create(context: any): {
173
+ ExportDefaultDeclaration?: undefined;
174
+ } | {
175
+ ExportDefaultDeclaration(node: any): void;
176
+ };
177
+ };
178
+ 'route-dto-required': {
179
+ meta: {
180
+ type: string;
181
+ docs: {
182
+ description: string;
183
+ category: string;
184
+ recommended: boolean;
185
+ };
186
+ schema: never[];
187
+ messages: {
188
+ missingDto: string;
189
+ };
190
+ };
191
+ create(context: any): {
192
+ MethodDefinition(node: any): void;
193
+ };
194
+ };
195
+ 'require-fragment-key': {
196
+ meta: {
197
+ type: string;
198
+ docs: {
199
+ description: string;
200
+ recommended: boolean;
201
+ };
202
+ schema: {
203
+ type: string;
204
+ properties: {
205
+ strict: {
206
+ type: string;
207
+ };
208
+ };
209
+ additionalProperties: boolean;
210
+ }[];
211
+ messages: {
212
+ listItem: string;
213
+ conditionalSibling: string;
214
+ };
215
+ };
216
+ create(context: any): {
217
+ JSXFragment: (node: any) => void;
218
+ JSXElement: (node: any) => void;
219
+ };
220
+ };
221
+ };
222
+ };
223
+ };
224
+ rules: {
8
225
  'tcy/import-specifiers-per-line': (string | {
9
226
  maxSpecifiers: number;
10
227
  })[];
@@ -12,6 +229,5 @@ declare namespace _default {
12
229
  'tcy/array-elements-per-line': string;
13
230
  'tcy/route-dto-required': string;
14
231
  };
15
- }
232
+ };
16
233
  export default _default;
17
- import pluginConfig from '../plugin.js';
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * ESLint's `--cache` keys on file contents only, never on the config that produced
4
+ * the results. Editing a rule therefore leaves a stale cache behind and lint output
5
+ * silently goes wrong until the cache is deleted by hand.
6
+ *
7
+ * This hashes everything that can change lint output and drops the caches when it
8
+ * moves. Run it immediately before `eslint --cache`:
9
+ *
10
+ * "lint:eslint": "eslint-cache-guard && eslint src --cache"
11
+ *
12
+ * Extra inputs can be passed as arguments, relative to the project root:
13
+ *
14
+ * "lint:eslint": "eslint-cache-guard tsconfig.json && eslint src --cache"
15
+ */
16
+ export {};