@tcy/eslint-rules 1.9.1 → 1.10.0-beta.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 (44) hide show
  1. package/coverage/clover.xml +133 -62
  2. package/coverage/coverage-final.json +2 -1
  3. package/coverage/lcov-report/index.html +19 -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 +5 -2
  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 +1 -1
  10. package/coverage/lcov-report/src/bin/index.html +1 -1
  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/consistent-const-scoping.js.html +703 -0
  15. package/coverage/lcov-report/src/decorator-type-enforcement.js.html +1 -1
  16. package/coverage/lcov-report/src/enforce-tailwind-important.js.html +116 -125
  17. package/coverage/lcov-report/src/export-specifiers-per-line.js.html +1 -1
  18. package/coverage/lcov-report/src/import-specifiers-per-line.js.html +1 -1
  19. package/coverage/lcov-report/src/index.html +35 -20
  20. package/coverage/lcov-report/src/index.js.html +1 -1
  21. package/coverage/lcov-report/src/jsx-boolean-shorthand.js.html +1 -1
  22. package/coverage/lcov-report/src/jsx-expression-string-literals.js.html +1 -1
  23. package/coverage/lcov-report/src/jsx-ref-string-exists.js.html +1 -1
  24. package/coverage/lcov-report/src/no-static-key-in-map.js.html +1 -1
  25. package/coverage/lcov-report/src/plugin.js.html +8 -2
  26. package/coverage/lcov-report/src/recommended.js.html +1 -1
  27. package/coverage/lcov-report/src/require-fragment-key.js.html +1 -1
  28. package/coverage/lcov-report/src/route-dto-required.js.html +1 -1
  29. package/coverage/lcov-report/src/v-model-name-match.js.html +1 -1
  30. package/coverage/lcov-report/src/vuejs-define-component.js.html +1 -1
  31. package/coverage/lcov-report/src/vuejs-define-workspace.js.html +1 -1
  32. package/coverage/lcov.info +342 -135
  33. package/decl/back/back.d.ts +17 -0
  34. package/decl/client/client.d.ts +17 -0
  35. package/decl/consistent-const-scoping.d.ts +63 -0
  36. package/decl/plugin.d.ts +16 -0
  37. package/package.json +6 -6
  38. package/src/back/back.js +1 -0
  39. package/src/client/client.js +1 -0
  40. package/src/consistent-const-scoping.js +206 -0
  41. package/src/enforce-tailwind-important.js +13 -16
  42. package/src/plugin.js +2 -0
  43. package/tests/consistent-const-scoping.spec.js +53 -0
  44. package/tests/enforce-tailwind-important.spec.js +100 -1
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1789059204481" clover="3.2.0">
3
- <project timestamp="1789059204481" name="All files">
4
- <metrics statements="440" coveredstatements="100" conditionals="412" coveredconditionals="121" methods="91" coveredmethods="18" elements="943" coveredelements="239" complexity="0" loc="440" ncloc="440" packages="4" files="23" classes="23"/>
2
+ <coverage generated="1790107877841" clover="3.2.0">
3
+ <project timestamp="1790107877841" name="All files">
4
+ <metrics statements="508" coveredstatements="181" conditionals="514" coveredconditionals="206" methods="105" coveredmethods="34" elements="1127" coveredelements="421" complexity="0" loc="508" ncloc="508" packages="4" files="24" classes="24"/>
5
5
  <package name="src">
6
- <metrics statements="419" coveredstatements="100" conditionals="404" coveredconditionals="121" methods="86" coveredmethods="18"/>
6
+ <metrics statements="487" coveredstatements="181" conditionals="506" coveredconditionals="206" methods="100" coveredmethods="34"/>
7
7
  <file name="array-elements-per-line.js" path="/home/runner/work/eslint-rules/eslint-rules/src/array-elements-per-line.js">
8
8
  <metrics statements="25" coveredstatements="0" conditionals="17" coveredconditionals="0" methods="4" coveredmethods="0"/>
9
9
  <line num="13" count="0" type="stmt"/>
@@ -32,6 +32,80 @@
32
32
  <line num="52" count="0" type="stmt"/>
33
33
  <line num="55" count="0" type="stmt"/>
34
34
  </file>
35
+ <file name="consistent-const-scoping.js" path="/home/runner/work/eslint-rules/eslint-rules/src/consistent-const-scoping.js">
36
+ <metrics statements="71" coveredstatements="41" conditionals="107" coveredconditionals="56" methods="16" coveredmethods="5"/>
37
+ <line num="44" count="1" type="stmt"/>
38
+ <line num="54" count="1" type="stmt"/>
39
+ <line num="61" count="1" type="stmt"/>
40
+ <line num="64" count="1" type="stmt"/>
41
+ <line num="65" count="37" type="cond" truecount="1" falsecount="1"/>
42
+ <line num="66" count="37" type="cond" truecount="4" falsecount="0"/>
43
+ <line num="67" count="36" type="cond" truecount="2" falsecount="0"/>
44
+ <line num="68" count="22" type="cond" truecount="1" falsecount="1"/>
45
+ <line num="69" count="22" type="cond" truecount="2" falsecount="0"/>
46
+ <line num="70" count="20" type="cond" truecount="2" falsecount="0"/>
47
+ <line num="71" count="18" type="cond" truecount="2" falsecount="0"/>
48
+ <line num="73" count="16" type="cond" truecount="1" falsecount="1"/>
49
+ <line num="74" count="0" type="cond" truecount="0" falsecount="2"/>
50
+ <line num="76" count="16" type="cond" truecount="4" falsecount="0"/>
51
+ <line num="77" count="1" type="cond" truecount="2" falsecount="0"/>
52
+ <line num="79" count="15" type="cond" truecount="2" falsecount="0"/>
53
+ <line num="80" count="1" type="cond" truecount="3" falsecount="0"/>
54
+ <line num="84" count="14" type="cond" truecount="4" falsecount="0"/>
55
+ <line num="85" count="3" type="cond" truecount="2" falsecount="1"/>
56
+ <line num="87" count="11" type="cond" truecount="2" falsecount="0"/>
57
+ <line num="88" count="3" type="stmt"/>
58
+ <line num="89" count="7" type="cond" truecount="1" falsecount="1"/>
59
+ <line num="90" count="7" type="cond" truecount="1" falsecount="1"/>
60
+ <line num="91" count="7" type="stmt"/>
61
+ <line num="94" count="8" type="cond" truecount="2" falsecount="0"/>
62
+ <line num="95" count="2" type="stmt"/>
63
+ <line num="96" count="3" type="cond" truecount="1" falsecount="1"/>
64
+ <line num="97" count="3" type="cond" truecount="2" falsecount="2"/>
65
+ <line num="98" count="3" type="stmt"/>
66
+ <line num="102" count="6" type="stmt"/>
67
+ <line num="106" count="1" type="stmt"/>
68
+ <line num="114" count="1" type="stmt"/>
69
+ <line num="115" count="8" type="cond" truecount="3" falsecount="1"/>
70
+ <line num="116" count="8" type="cond" truecount="4" falsecount="0"/>
71
+ <line num="117" count="6" type="cond" truecount="2" falsecount="0"/>
72
+ <line num="119" count="5" type="stmt"/>
73
+ <line num="120" count="35" type="cond" truecount="1" falsecount="1"/>
74
+ <line num="121" count="35" type="stmt"/>
75
+ <line num="122" count="35" type="cond" truecount="2" falsecount="0"/>
76
+ <line num="123" count="2" type="cond" truecount="0" falsecount="3"/>
77
+ <line num="125" count="33" type="cond" truecount="3" falsecount="0"/>
78
+ <line num="129" count="1" type="stmt"/>
79
+ <line num="130" count="0" type="cond" truecount="0" falsecount="2"/>
80
+ <line num="131" count="0" type="stmt"/>
81
+ <line num="132" count="0" type="cond" truecount="0" falsecount="4"/>
82
+ <line num="133" count="0" type="cond" truecount="0" falsecount="4"/>
83
+ <line num="134" count="0" type="stmt"/>
84
+ <line num="156" count="0" type="stmt"/>
85
+ <line num="159" count="0" type="stmt"/>
86
+ <line num="160" count="0" type="stmt"/>
87
+ <line num="161" count="0" type="stmt"/>
88
+ <line num="162" count="0" type="stmt"/>
89
+ <line num="164" count="0" type="cond" truecount="0" falsecount="3"/>
90
+ <line num="165" count="0" type="stmt"/>
91
+ <line num="166" count="0" type="cond" truecount="0" falsecount="2"/>
92
+ <line num="167" count="0" type="stmt"/>
93
+ <line num="170" count="0" type="cond" truecount="0" falsecount="2"/>
94
+ <line num="173" count="0" type="stmt"/>
95
+ <line num="174" count="0" type="stmt"/>
96
+ <line num="175" count="0" type="cond" truecount="0" falsecount="2"/>
97
+ <line num="179" count="0" type="stmt"/>
98
+ <line num="181" count="0" type="stmt"/>
99
+ <line num="183" count="0" type="cond" truecount="0" falsecount="4"/>
100
+ <line num="184" count="0" type="cond" truecount="0" falsecount="4"/>
101
+ <line num="186" count="0" type="stmt"/>
102
+ <line num="187" count="0" type="cond" truecount="0" falsecount="2"/>
103
+ <line num="189" count="0" type="cond" truecount="0" falsecount="2"/>
104
+ <line num="190" count="0" type="cond" truecount="0" falsecount="2"/>
105
+ <line num="191" count="0" type="cond" truecount="0" falsecount="2"/>
106
+ <line num="193" count="0" type="stmt"/>
107
+ <line num="195" count="0" type="stmt"/>
108
+ </file>
35
109
  <file name="decorator-type-enforcement.js" path="/home/runner/work/eslint-rules/eslint-rules/src/decorator-type-enforcement.js">
36
110
  <metrics statements="26" coveredstatements="0" conditionals="14" coveredconditionals="0" methods="6" coveredmethods="0"/>
37
111
  <line num="1" count="0" type="stmt"/>
@@ -62,24 +136,24 @@
62
136
  <line num="72" count="0" type="stmt"/>
63
137
  </file>
64
138
  <file name="enforce-tailwind-important.js" path="/home/runner/work/eslint-rules/eslint-rules/src/enforce-tailwind-important.js">
65
- <metrics statements="71" coveredstatements="5" conditionals="63" coveredconditionals="5" methods="21" coveredmethods="3"/>
66
- <line num="4" count="9" type="stmt"/>
67
- <line num="6" count="1" type="stmt"/>
139
+ <metrics statements="68" coveredstatements="45" conditionals="58" coveredconditionals="34" methods="19" coveredmethods="14"/>
140
+ <line num="4" count="35" type="stmt"/>
141
+ <line num="6" count="9" type="stmt"/>
68
142
  <line num="16" count="1" type="stmt"/>
69
- <line num="28" count="8" type="cond" truecount="2" falsecount="0"/>
70
- <line num="31" count="4" type="stmt"/>
71
- <line num="58" count="0" type="stmt"/>
72
- <line num="60" count="0" type="stmt"/>
73
- <line num="63" count="0" type="stmt"/>
74
- <line num="69" count="0" type="stmt"/>
75
- <line num="70" count="0" type="stmt"/>
76
- <line num="73" count="0" type="cond" truecount="0" falsecount="2"/>
77
- <line num="74" count="0" type="stmt"/>
78
- <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
79
- <line num="78" count="0" type="stmt"/>
80
- <line num="83" count="0" type="stmt"/>
81
- <line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
82
- <line num="86" count="0" type="stmt"/>
143
+ <line num="28" count="34" type="cond" truecount="2" falsecount="0"/>
144
+ <line num="31" count="13" type="stmt"/>
145
+ <line num="58" count="9" type="stmt"/>
146
+ <line num="60" count="9" type="stmt"/>
147
+ <line num="63" count="26" type="stmt"/>
148
+ <line num="69" count="16" type="stmt"/>
149
+ <line num="70" count="14" type="stmt"/>
150
+ <line num="73" count="14" type="cond" truecount="2" falsecount="0"/>
151
+ <line num="74" count="5" type="stmt"/>
152
+ <line num="77" count="10" type="cond" truecount="2" falsecount="0"/>
153
+ <line num="78" count="9" type="stmt"/>
154
+ <line num="83" count="9" type="stmt"/>
155
+ <line num="84" count="9" type="cond" truecount="1" falsecount="1"/>
156
+ <line num="86" count="9" type="stmt"/>
83
157
  <line num="92" count="0" type="stmt"/>
84
158
  <line num="93" count="0" type="stmt"/>
85
159
  <line num="95" count="0" type="stmt"/>
@@ -92,48 +166,45 @@
92
166
  <line num="105" count="0" type="stmt"/>
93
167
  <line num="108" count="0" type="stmt"/>
94
168
  <line num="109" count="0" type="stmt"/>
95
- <line num="113" count="0" type="cond" truecount="0" falsecount="2"/>
169
+ <line num="113" count="29" type="cond" truecount="1" falsecount="1"/>
96
170
  <line num="114" count="0" type="stmt"/>
97
- <line num="117" count="0" type="cond" truecount="0" falsecount="6"/>
98
- <line num="119" count="0" type="stmt"/>
99
- <line num="120" count="0" type="stmt"/>
100
- <line num="122" count="0" type="stmt"/>
101
- <line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
102
- <line num="124" count="0" type="stmt"/>
103
- <line num="127" count="0" type="cond" truecount="0" falsecount="2"/>
104
- <line num="128" count="0" type="stmt"/>
105
- <line num="129" count="0" type="cond" truecount="0" falsecount="2"/>
106
- <line num="130" count="0" type="stmt"/>
107
- <line num="131" count="0" type="cond" truecount="0" falsecount="4"/>
108
- <line num="132" count="0" type="stmt"/>
109
- <line num="137" count="0" type="stmt"/>
110
- <line num="139" count="0" type="stmt"/>
111
- <line num="140" count="0" type="cond" truecount="0" falsecount="4"/>
112
- <line num="141" count="0" type="stmt"/>
113
- <line num="144" count="0" type="stmt"/>
114
- <line num="146" count="0" type="stmt"/>
115
- <line num="147" count="0" type="stmt"/>
116
- <line num="152" count="0" type="cond" truecount="0" falsecount="2"/>
117
- <line num="153" count="0" type="stmt"/>
118
- <line num="156" count="0" type="stmt"/>
119
- <line num="160" count="0" type="stmt"/>
120
- <line num="162" count="0" type="stmt"/>
121
- <line num="165" count="0" type="stmt"/>
122
- <line num="168" count="0" type="stmt"/>
123
- <line num="169" count="0" type="stmt"/>
124
- <line num="170" count="0" type="stmt"/>
125
- <line num="172" count="0" type="stmt"/>
126
- <line num="179" count="0" type="stmt"/>
127
- <line num="181" count="0" type="cond" truecount="0" falsecount="2"/>
128
- <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
129
- <line num="184" count="0" type="stmt"/>
130
- <line num="185" count="0" type="cond" truecount="0" falsecount="2"/>
131
- <line num="187" count="0" type="cond" truecount="0" falsecount="4"/>
132
- <line num="188" count="0" type="stmt"/>
133
- <line num="189" count="0" type="cond" truecount="0" falsecount="2"/>
134
- <line num="190" count="0" type="stmt"/>
135
- <line num="196" count="0" type="cond" truecount="0" falsecount="2"/>
136
- <line num="204" count="0" type="stmt"/>
171
+ <line num="117" count="29" type="cond" truecount="6" falsecount="1"/>
172
+ <line num="120" count="14" type="cond" truecount="2" falsecount="0"/>
173
+ <line num="121" count="13" type="stmt"/>
174
+ <line num="123" count="14" type="stmt"/>
175
+ <line num="125" count="2" type="stmt"/>
176
+ <line num="126" count="2" type="stmt"/>
177
+ <line num="128" count="1" type="stmt"/>
178
+ <line num="129" count="1" type="cond" truecount="3" falsecount="1"/>
179
+ <line num="130" count="1" type="stmt"/>
180
+ <line num="133" count="1" type="stmt"/>
181
+ <line num="135" count="0" type="stmt"/>
182
+ <line num="136" count="0" type="stmt"/>
183
+ <line num="141" count="0" type="cond" truecount="0" falsecount="2"/>
184
+ <line num="142" count="0" type="stmt"/>
185
+ <line num="145" count="0" type="stmt"/>
186
+ <line num="149" count="0" type="stmt"/>
187
+ <line num="151" count="0" type="stmt"/>
188
+ <line num="154" count="0" type="stmt"/>
189
+ <line num="157" count="1" type="stmt"/>
190
+ <line num="158" count="1" type="stmt"/>
191
+ <line num="159" count="1" type="stmt"/>
192
+ <line num="163" count="10" type="cond" truecount="2" falsecount="0"/>
193
+ <line num="164" count="2" type="stmt"/>
194
+ <line num="166" count="10" type="stmt"/>
195
+ <line num="167" count="10" type="stmt"/>
196
+ <line num="169" count="1" type="stmt"/>
197
+ <line num="176" count="9" type="stmt"/>
198
+ <line num="178" count="9" type="cond" truecount="1" falsecount="1"/>
199
+ <line num="179" count="9" type="cond" truecount="1" falsecount="1"/>
200
+ <line num="181" count="9" type="stmt"/>
201
+ <line num="182" count="9" type="cond" truecount="1" falsecount="1"/>
202
+ <line num="184" count="9" type="cond" truecount="2" falsecount="2"/>
203
+ <line num="185" count="0" type="stmt"/>
204
+ <line num="186" count="9" type="cond" truecount="1" falsecount="1"/>
205
+ <line num="187" count="9" type="stmt"/>
206
+ <line num="193" count="9" type="cond" truecount="1" falsecount="1"/>
207
+ <line num="201" count="0" type="stmt"/>
137
208
  </file>
138
209
  <file name="export-specifiers-per-line.js" path="/home/runner/work/eslint-rules/eslint-rules/src/export-specifiers-per-line.js">
139
210
  <metrics statements="23" coveredstatements="0" conditionals="12" coveredconditionals="0" methods="4" coveredmethods="0"/>