@tcy/eslint-rules 1.9.0 → 1.9.2

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 (39) hide show
  1. package/README.md +4 -0
  2. package/coverage/clover.xml +69 -67
  3. package/coverage/coverage-final.json +1 -1
  4. package/coverage/lcov-report/index.html +19 -19
  5. package/coverage/lcov-report/src/array-elements-per-line.js.html +1 -1
  6. package/coverage/lcov-report/src/back/back.js.html +1 -1
  7. package/coverage/lcov-report/src/back/http.js.html +1 -1
  8. package/coverage/lcov-report/src/back/index.html +1 -1
  9. package/coverage/lcov-report/src/back/recommended.js.html +1 -1
  10. package/coverage/lcov-report/src/bin/eslint-cache-guard.js.html +1 -1
  11. package/coverage/lcov-report/src/bin/index.html +1 -1
  12. package/coverage/lcov-report/src/client/client.js.html +1 -1
  13. package/coverage/lcov-report/src/client/index.html +1 -1
  14. package/coverage/lcov-report/src/client/recommended.js.html +1 -1
  15. package/coverage/lcov-report/src/decorator-type-enforcement.js.html +1 -1
  16. package/coverage/lcov-report/src/enforce-tailwind-important.js.html +241 -115
  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 +20 -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 +1 -1
  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 +153 -149
  33. package/decl/back/back.d.ts +13 -1
  34. package/decl/client/client.d.ts +13 -1
  35. package/decl/enforce-tailwind-important.d.ts +30 -1
  36. package/decl/plugin.d.ts +13 -1
  37. package/package.json +3 -3
  38. package/src/enforce-tailwind-important.js +63 -21
  39. package/tests/enforce-tailwind-important.spec.js +141 -1
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">23.64% </span>
26
+ <span class="strong">33.54% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>113/478</span>
28
+ <span class='fraction'>162/483</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">29.07% </span>
33
+ <span class="strong">37.59% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>116/399</span>
35
+ <span class='fraction'>150/399</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">19.27% </span>
40
+ <span class="strong">34.52% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>16/83</span>
42
+ <span class='fraction'>29/84</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">23.42% </span>
47
+ <span class="strong">33.65% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>97/414</span>
49
+ <span class='fraction'>140/416</span>
50
50
  </div>
51
51
 
52
52
 
@@ -109,18 +109,18 @@
109
109
  </tr>
110
110
 
111
111
  <tr>
112
- <td class="file low" data-value="enforce-tailwind-important.js"><a href="enforce-tailwind-important.js.html">enforce-tailwind-important.js</a></td>
113
- <td data-value="3.89" class="pic low">
114
- <div class="chart"><div class="cover-fill" style="width: 3%"></div><div class="cover-empty" style="width: 97%"></div></div>
112
+ <td class="file medium" data-value="enforce-tailwind-important.js"><a href="enforce-tailwind-important.js.html">enforce-tailwind-important.js</a></td>
113
+ <td data-value="63.41" class="pic medium">
114
+ <div class="chart"><div class="cover-fill" style="width: 63%"></div><div class="cover-empty" style="width: 37%"></div></div>
115
115
  </td>
116
- <td data-value="3.89" class="pct low">3.89%</td>
117
- <td data-value="77" class="abs low">3/77</td>
118
- <td data-value="0" class="pct low">0%</td>
119
- <td data-value="58" class="abs low">0/58</td>
120
- <td data-value="5.55" class="pct low">5.55%</td>
121
- <td data-value="18" class="abs low">1/18</td>
122
- <td data-value="3.03" class="pct low">3.03%</td>
123
- <td data-value="66" class="abs low">2/66</td>
116
+ <td data-value="63.41" class="pct medium">63.41%</td>
117
+ <td data-value="82" class="abs medium">52/82</td>
118
+ <td data-value="58.62" class="pct medium">58.62%</td>
119
+ <td data-value="58" class="abs medium">34/58</td>
120
+ <td data-value="73.68" class="pct medium">73.68%</td>
121
+ <td data-value="19" class="abs medium">14/19</td>
122
+ <td data-value="66.17" class="pct medium">66.17%</td>
123
+ <td data-value="68" class="abs medium">45/68</td>
124
124
  </tr>
125
125
 
126
126
  <tr>
@@ -341,7 +341,7 @@
341
341
  <div class='footer quiet pad2 space-top1 center small'>
342
342
  Code coverage generated by
343
343
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
344
- at 2026-09-08T15:20:28.268Z
344
+ at 2026-09-17T13:27:07.234Z
345
345
  </div>
346
346
  <script src="../prettify.js"></script>
347
347
  <script>
@@ -76,7 +76,7 @@ export * as back from './back/back.js'
76
76
  <div class='footer quiet pad2 space-top1 center small'>
77
77
  Code coverage generated by
78
78
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
79
- at 2026-09-08T15:20:28.268Z
79
+ at 2026-09-17T13:27:07.234Z
80
80
  </div>
81
81
  <script src="../prettify.js"></script>
82
82
  <script>
@@ -172,7 +172,7 @@
172
172
  <div class='footer quiet pad2 space-top1 center small'>
173
173
  Code coverage generated by
174
174
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
175
- at 2026-09-08T15:20:28.268Z
175
+ at 2026-09-17T13:27:07.234Z
176
176
  </div>
177
177
  <script src="../prettify.js"></script>
178
178
  <script>
@@ -193,7 +193,7 @@
193
193
  <div class='footer quiet pad2 space-top1 center small'>
194
194
  Code coverage generated by
195
195
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
196
- at 2026-09-08T15:20:28.268Z
196
+ at 2026-09-17T13:27:07.234Z
197
197
  </div>
198
198
  <script src="../prettify.js"></script>
199
199
  <script>
@@ -355,7 +355,7 @@ function <span class="fstat-no" title="function not covered" >getAllEnclosingFun
355
355
  <div class='footer quiet pad2 space-top1 center small'>
356
356
  Code coverage generated by
357
357
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
358
- at 2026-09-08T15:20:28.268Z
358
+ at 2026-09-17T13:27:07.234Z
359
359
  </div>
360
360
  <script src="../prettify.js"></script>
361
361
  <script>
@@ -616,7 +616,7 @@ export default {
616
616
  <div class='footer quiet pad2 space-top1 center small'>
617
617
  Code coverage generated by
618
618
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
619
- at 2026-09-08T15:20:28.268Z
619
+ at 2026-09-17T13:27:07.234Z
620
620
  </div>
621
621
  <script src="../prettify.js"></script>
622
622
  <script>
@@ -163,7 +163,7 @@ export default {
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2026-09-08T15:20:28.268Z
166
+ at 2026-09-17T13:27:07.234Z
167
167
  </div>
168
168
  <script src="../prettify.js"></script>
169
169
  <script>
@@ -130,7 +130,7 @@
130
130
  <div class='footer quiet pad2 space-top1 center small'>
131
131
  Code coverage generated by
132
132
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
133
- at 2026-09-08T15:20:28.268Z
133
+ at 2026-09-17T13:27:07.234Z
134
134
  </div>
135
135
  <script src="../prettify.js"></script>
136
136
  <script>
@@ -772,7 +772,7 @@ export default {
772
772
  <div class='footer quiet pad2 space-top1 center small'>
773
773
  Code coverage generated by
774
774
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
775
- at 2026-09-08T15:20:28.268Z
775
+ at 2026-09-17T13:27:07.234Z
776
776
  </div>
777
777
  <script src="../prettify.js"></script>
778
778
  <script>
@@ -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-09-08T15:20:28.268Z
301
+ at 2026-09-17T13:27:07.234Z
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-09-08T15:20:28.268Z
292
+ at 2026-09-17T13:27:07.234Z
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-09-08T15:20:28.268Z
331
+ at 2026-09-17T13:27:07.234Z
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-09-08T15:20:28.268Z
268
+ at 2026-09-17T13:27:07.234Z
269
269
  </div>
270
270
  <script src="../prettify.js"></script>
271
271
  <script>
@@ -122,170 +122,174 @@ TN:
122
122
  SF:src/enforce-tailwind-important.js
123
123
  FN:4,(anonymous_0)
124
124
  FN:6,(anonymous_1)
125
- FN:17,(anonymous_2)
126
- FN:23,reportIfMissing
127
- FN:24,(anonymous_4)
128
- FN:32,(anonymous_5)
129
- FN:37,(anonymous_6)
130
- FN:46,buildFixedTemplateText
131
- FN:47,(anonymous_8)
132
- FN:54,(anonymous_9)
133
- FN:67,processExpression
134
- FN:77,(anonymous_11)
135
- FN:85,(anonymous_12)
136
- FN:94,(anonymous_13)
137
- FN:102,(anonymous_14)
138
- FN:114,(anonymous_15)
139
- FN:135,(anonymous_16)
140
- FN:150,(anonymous_17)
141
- FNF:18
142
- FNH:1
143
- FNDA:1,(anonymous_0)
144
- FNDA:0,(anonymous_1)
145
- FNDA:0,(anonymous_2)
146
- FNDA:0,reportIfMissing
147
- FNDA:0,(anonymous_4)
148
- FNDA:0,(anonymous_5)
149
- FNDA:0,(anonymous_6)
125
+ FN:28,(anonymous_2)
126
+ FN:31,(anonymous_3)
127
+ FN:57,(anonymous_4)
128
+ FN:63,(anonymous_5)
129
+ FN:68,reportIfMissing
130
+ FN:69,(anonymous_7)
131
+ FN:77,(anonymous_8)
132
+ FN:82,(anonymous_9)
133
+ FN:91,buildFixedTemplateText
134
+ FN:92,(anonymous_11)
135
+ FN:99,(anonymous_12)
136
+ FN:112,processExpression
137
+ FN:128,(anonymous_14)
138
+ FN:136,(anonymous_15)
139
+ FN:148,(anonymous_16)
140
+ FN:177,(anonymous_17)
141
+ FN:192,(anonymous_18)
142
+ FNF:19
143
+ FNH:14
144
+ FNDA:35,(anonymous_0)
145
+ FNDA:9,(anonymous_1)
146
+ FNDA:34,(anonymous_2)
147
+ FNDA:13,(anonymous_3)
148
+ FNDA:9,(anonymous_4)
149
+ FNDA:26,(anonymous_5)
150
+ FNDA:14,reportIfMissing
151
+ FNDA:16,(anonymous_7)
152
+ FNDA:10,(anonymous_8)
153
+ FNDA:9,(anonymous_9)
150
154
  FNDA:0,buildFixedTemplateText
151
- FNDA:0,(anonymous_8)
152
- FNDA:0,(anonymous_9)
153
- FNDA:0,processExpression
154
155
  FNDA:0,(anonymous_11)
155
156
  FNDA:0,(anonymous_12)
156
- FNDA:0,(anonymous_13)
157
- FNDA:0,(anonymous_14)
157
+ FNDA:29,processExpression
158
+ FNDA:1,(anonymous_14)
158
159
  FNDA:0,(anonymous_15)
159
160
  FNDA:0,(anonymous_16)
160
- FNDA:0,(anonymous_17)
161
- DA:4,1
162
- DA:6,1
163
- DA:18,0
164
- DA:24,0
165
- DA:25,0
166
- DA:28,0
167
- DA:29,0
168
- DA:32,0
169
- DA:33,0
170
- DA:38,0
171
- DA:39,0
172
- DA:41,0
173
- DA:47,0
174
- DA:48,0
175
- DA:50,0
176
- DA:51,0
177
- DA:53,0
178
- DA:54,0
179
- DA:55,0
180
- DA:58,0
181
- DA:59,0
182
- DA:60,0
183
- DA:63,0
184
- DA:64,0
185
- DA:68,0
186
- DA:69,0
187
- DA:72,0
188
- DA:74,0
189
- DA:75,0
190
- DA:77,0
191
- DA:78,0
192
- DA:79,0
193
- DA:82,0
194
- DA:83,0
195
- DA:84,0
196
- DA:85,0
197
- DA:86,0
198
- DA:87,0
161
+ FNDA:9,(anonymous_17)
162
+ FNDA:9,(anonymous_18)
163
+ DA:4,35
164
+ DA:6,9
165
+ DA:16,1
166
+ DA:28,34
167
+ DA:31,13
168
+ DA:58,9
169
+ DA:60,9
170
+ DA:63,26
171
+ DA:69,16
172
+ DA:70,14
173
+ DA:73,14
174
+ DA:74,5
175
+ DA:77,10
176
+ DA:78,9
177
+ DA:83,9
178
+ DA:84,9
179
+ DA:86,9
199
180
  DA:92,0
200
- DA:94,0
181
+ DA:93,0
201
182
  DA:95,0
202
183
  DA:96,0
184
+ DA:98,0
203
185
  DA:99,0
204
- DA:101,0
205
- DA:102,0
206
- DA:107,0
186
+ DA:100,0
187
+ DA:103,0
188
+ DA:104,0
189
+ DA:105,0
207
190
  DA:108,0
208
- DA:111,0
209
- DA:115,0
210
- DA:117,0
211
- DA:120,0
212
- DA:123,0
213
- DA:124,0
214
- DA:125,0
215
- DA:127,0
216
- DA:134,0
191
+ DA:109,0
192
+ DA:113,29
193
+ DA:114,0
194
+ DA:117,29
195
+ DA:120,14
196
+ DA:121,13
197
+ DA:123,14
198
+ DA:125,2
199
+ DA:126,2
200
+ DA:128,1
201
+ DA:129,1
202
+ DA:130,1
203
+ DA:133,1
204
+ DA:135,0
217
205
  DA:136,0
218
- DA:137,0
219
- DA:139,0
220
- DA:140,0
206
+ DA:141,0
221
207
  DA:142,0
222
- DA:143,0
223
- DA:144,0
224
208
  DA:145,0
209
+ DA:149,0
225
210
  DA:151,0
226
- DA:159,0
227
- LF:66
228
- LH:2
229
- BRDA:28,0,0,0
230
- BRDA:28,0,1,0
231
- BRDA:32,1,0,0
232
- BRDA:32,1,1,0
233
- BRDA:39,2,0,0
234
- BRDA:39,2,1,0
235
- BRDA:54,3,0,0
236
- BRDA:54,3,1,0
237
- BRDA:58,4,0,0
238
- BRDA:58,4,1,0
239
- BRDA:59,5,0,0
240
- BRDA:59,5,1,0
241
- BRDA:59,6,0,0
242
- BRDA:59,6,1,0
243
- BRDA:68,7,0,0
244
- BRDA:68,7,1,0
245
- BRDA:72,8,0,0
246
- BRDA:72,8,1,0
247
- BRDA:72,8,2,0
248
- BRDA:72,8,3,0
249
- BRDA:72,8,4,0
250
- BRDA:72,8,5,0
251
- BRDA:78,9,0,0
252
- BRDA:78,9,1,0
253
- BRDA:82,10,0,0
254
- BRDA:82,10,1,0
255
- BRDA:84,11,0,0
256
- BRDA:84,11,1,0
257
- BRDA:86,12,0,0
258
- BRDA:86,12,1,0
259
- BRDA:86,13,0,0
260
- BRDA:86,13,1,0
261
- BRDA:95,14,0,0
262
- BRDA:95,14,1,0
263
- BRDA:95,15,0,0
264
- BRDA:95,15,1,0
265
- BRDA:107,16,0,0
266
- BRDA:107,16,1,0
267
- BRDA:136,17,0,0
268
- BRDA:136,17,1,0
269
- BRDA:137,18,0,0
270
- BRDA:137,18,1,0
271
- BRDA:140,19,0,0
272
- BRDA:140,19,1,0
273
- BRDA:142,20,0,0
274
- BRDA:142,20,1,0
275
- BRDA:142,21,0,0
276
- BRDA:142,21,1,0
277
- BRDA:144,22,0,0
278
- BRDA:144,22,1,0
279
- BRDA:151,23,0,0
280
- BRDA:151,23,1,0
281
- BRDA:152,24,0,0
282
- BRDA:152,24,1,0
283
- BRDA:152,24,2,0
284
- BRDA:152,24,3,0
285
- BRDA:152,24,4,0
286
- BRDA:152,24,5,0
211
+ DA:154,0
212
+ DA:157,1
213
+ DA:158,1
214
+ DA:159,1
215
+ DA:163,10
216
+ DA:164,2
217
+ DA:166,10
218
+ DA:167,10
219
+ DA:169,1
220
+ DA:176,9
221
+ DA:178,9
222
+ DA:179,9
223
+ DA:181,9
224
+ DA:182,9
225
+ DA:184,9
226
+ DA:185,0
227
+ DA:186,9
228
+ DA:187,9
229
+ DA:193,9
230
+ DA:201,0
231
+ LF:68
232
+ LH:45
233
+ BRDA:28,0,0,34
234
+ BRDA:28,0,1,25
235
+ BRDA:33,1,0,13
236
+ BRDA:33,1,1,1
237
+ BRDA:33,1,2,12
238
+ BRDA:73,2,0,5
239
+ BRDA:73,2,1,9
240
+ BRDA:77,3,0,9
241
+ BRDA:77,3,1,1
242
+ BRDA:84,4,0,9
243
+ BRDA:84,4,1,0
244
+ BRDA:99,5,0,0
245
+ BRDA:99,5,1,0
246
+ BRDA:103,6,0,0
247
+ BRDA:103,6,1,0
248
+ BRDA:104,7,0,0
249
+ BRDA:104,7,1,0
250
+ BRDA:104,8,0,0
251
+ BRDA:104,8,1,0
252
+ BRDA:113,9,0,0
253
+ BRDA:113,9,1,29
254
+ BRDA:117,10,0,14
255
+ BRDA:117,10,1,2
256
+ BRDA:117,10,2,1
257
+ BRDA:117,10,3,0
258
+ BRDA:117,10,4,1
259
+ BRDA:117,10,5,10
260
+ BRDA:117,10,6,1
261
+ BRDA:120,11,0,13
262
+ BRDA:120,11,1,1
263
+ BRDA:129,12,0,1
264
+ BRDA:129,12,1,0
265
+ BRDA:129,13,0,1
266
+ BRDA:129,13,1,1
267
+ BRDA:141,14,0,0
268
+ BRDA:141,14,1,0
269
+ BRDA:163,15,0,2
270
+ BRDA:163,15,1,8
271
+ BRDA:178,16,0,0
272
+ BRDA:178,16,1,9
273
+ BRDA:179,17,0,0
274
+ BRDA:179,17,1,9
275
+ BRDA:182,18,0,0
276
+ BRDA:182,18,1,9
277
+ BRDA:184,19,0,0
278
+ BRDA:184,19,1,9
279
+ BRDA:184,20,0,9
280
+ BRDA:184,20,1,0
281
+ BRDA:186,21,0,9
282
+ BRDA:186,21,1,0
283
+ BRDA:193,22,0,0
284
+ BRDA:193,22,1,9
285
+ BRDA:194,23,0,9
286
+ BRDA:194,23,1,9
287
+ BRDA:194,23,2,9
288
+ BRDA:194,23,3,0
289
+ BRDA:194,23,4,0
290
+ BRDA:194,23,5,0
287
291
  BRF:58
288
- BRH:0
292
+ BRH:34
289
293
  end_of_record
290
294
  TN:
291
295
  SF:src/export-specifiers-per-line.js
@@ -106,7 +106,19 @@ declare const _default: {
106
106
  recommended: boolean;
107
107
  };
108
108
  fixable: string;
109
- schema: never[];
109
+ schema: {
110
+ type: string;
111
+ properties: {
112
+ ignore: {
113
+ type: string;
114
+ items: {
115
+ type: string;
116
+ };
117
+ default: never[];
118
+ };
119
+ };
120
+ additionalProperties: boolean;
121
+ }[];
110
122
  messages: {
111
123
  missingImportant: string;
112
124
  };
@@ -106,7 +106,19 @@ declare const _default: {
106
106
  recommended: boolean;
107
107
  };
108
108
  fixable: string;
109
- schema: never[];
109
+ schema: {
110
+ type: string;
111
+ properties: {
112
+ ignore: {
113
+ type: string;
114
+ items: {
115
+ type: string;
116
+ };
117
+ default: never[];
118
+ };
119
+ };
120
+ additionalProperties: boolean;
121
+ }[];
110
122
  messages: {
111
123
  missingImportant: string;
112
124
  };
@@ -3,6 +3,23 @@
3
3
  */
4
4
  export declare const isMissingImportant: (cls: any) => boolean;
5
5
  export declare const addImportant: (cls: any) => string;
6
+ /**
7
+ * Plain (non-Tailwind) classes that must NOT receive the "!" modifier.
8
+ *
9
+ * These ship in the widgets' bundled Bootstrap-style grid CSS and are matched by
10
+ * a bare `.class` selector. Appending "!" turns the token into `class!`, which
11
+ * matches no rule at all (Tailwind does not emit anything for it, and `.class`
12
+ * does not match the `class!` token) - silently breaking the layout.
13
+ */
14
+ export declare const DEFAULT_IGNORED_CLASSES: string[];
15
+ /**
16
+ * Whether a class token must be flagged for a missing "!" modifier.
17
+ * @param {string} cls the class token
18
+ * @param {Set<string>} ignored classes that are allowed without "!"
19
+ */
20
+ export declare const shouldFlag: (cls: string, ignored: Set<string>) => boolean;
21
+ /** Build the set of ignored classes from the rule options. */
22
+ export declare const resolveIgnored: (options: any) => Set<any>;
6
23
  declare const _default: {
7
24
  meta: {
8
25
  type: string;
@@ -11,7 +28,19 @@ declare const _default: {
11
28
  recommended: boolean;
12
29
  };
13
30
  fixable: string;
14
- schema: never[];
31
+ schema: {
32
+ type: string;
33
+ properties: {
34
+ ignore: {
35
+ type: string;
36
+ items: {
37
+ type: string;
38
+ };
39
+ default: never[];
40
+ };
41
+ };
42
+ additionalProperties: boolean;
43
+ }[];
15
44
  messages: {
16
45
  missingImportant: string;
17
46
  };
package/decl/plugin.d.ts CHANGED
@@ -103,7 +103,19 @@ declare const _default: {
103
103
  recommended: boolean;
104
104
  };
105
105
  fixable: string;
106
- schema: never[];
106
+ schema: {
107
+ type: string;
108
+ properties: {
109
+ ignore: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ };
114
+ default: never[];
115
+ };
116
+ };
117
+ additionalProperties: boolean;
118
+ }[];
107
119
  messages: {
108
120
  missingImportant: string;
109
121
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tcy/eslint-rules",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "```typescript import { plugin as customRules } from 'tcy@eslint-rules/src/index.mjs';",
5
5
  "homepage": "https://github.com/tcastelly/eslint-rules#readme",
6
6
  "bugs": {
@@ -47,8 +47,8 @@
47
47
  "test": "jest"
48
48
  },
49
49
  "devDependencies": {
50
- "@babel/core": "^8.0.1",
51
- "@babel/preset-env": "^8.0.2",
50
+ "@babel/core": "^8.0.5",
51
+ "@babel/preset-env": "^8.0.5",
52
52
  "@types/jest": "^30.0.0",
53
53
  "@types/node": "^26.5.0",
54
54
  "babel-jest": "^30.5.1",