@tcy/eslint-rules 1.8.0 → 1.9.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.
- package/README.md +4 -0
- package/coverage/clover.xml +109 -58
- package/coverage/coverage-final.json +2 -1
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/src/array-elements-per-line.js.html +1 -1
- package/coverage/lcov-report/src/back/back.js.html +1 -1
- package/coverage/lcov-report/src/back/http.js.html +1 -1
- package/coverage/lcov-report/src/back/index.html +1 -1
- package/coverage/lcov-report/src/back/recommended.js.html +1 -1
- package/coverage/lcov-report/src/bin/eslint-cache-guard.js.html +1 -1
- package/coverage/lcov-report/src/bin/index.html +1 -1
- package/coverage/lcov-report/src/client/client.js.html +5 -2
- package/coverage/lcov-report/src/client/index.html +1 -1
- package/coverage/lcov-report/src/client/recommended.js.html +1 -1
- package/coverage/lcov-report/src/decorator-type-enforcement.js.html +1 -1
- package/coverage/lcov-report/src/enforce-tailwind-important.js.html +151 -16
- package/coverage/lcov-report/src/export-specifiers-per-line.js.html +1 -1
- package/coverage/lcov-report/src/import-specifiers-per-line.js.html +1 -1
- package/coverage/lcov-report/src/index.html +34 -19
- package/coverage/lcov-report/src/index.js.html +1 -1
- package/coverage/lcov-report/src/jsx-boolean-shorthand.js.html +1 -1
- package/coverage/lcov-report/src/jsx-expression-string-literals.js.html +1 -1
- package/coverage/lcov-report/src/jsx-ref-string-exists.js.html +1 -1
- package/coverage/lcov-report/src/no-static-key-in-map.js.html +631 -0
- package/coverage/lcov-report/src/plugin.js.html +8 -2
- package/coverage/lcov-report/src/recommended.js.html +1 -1
- package/coverage/lcov-report/src/require-fragment-key.js.html +1 -1
- package/coverage/lcov-report/src/route-dto-required.js.html +1 -1
- package/coverage/lcov-report/src/v-model-name-match.js.html +1 -1
- package/coverage/lcov-report/src/vuejs-define-component.js.html +1 -1
- package/coverage/lcov-report/src/vuejs-define-workspace.js.html +1 -1
- package/coverage/lcov.info +259 -128
- package/decl/back/back.d.ts +29 -1
- package/decl/client/client.d.ts +30 -1
- package/decl/enforce-tailwind-important.d.ts +30 -1
- package/decl/no-static-key-in-map.d.ts +66 -0
- package/decl/plugin.d.ts +29 -1
- package/package.json +1 -1
- package/src/client/client.js +1 -0
- package/src/enforce-tailwind-important.js +50 -5
- package/src/no-static-key-in-map.js +182 -0
- package/src/plugin.js +2 -0
- package/tests/enforce-tailwind-important.spec.js +42 -1
- package/tests/no-static-key-in-map.spec.js +186 -0
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@ const customConfig = [
|
|
|
11
11
|
'tcy/import-specifiers-per-line': ['error', { maxSpecifiers: 4 }],
|
|
12
12
|
'tcy/export-specifiers-per-line': 'error',
|
|
13
13
|
'tcy/array-elements-per-line': 'error',
|
|
14
|
+
// `ignore`: extra class names that may stay without the `!` modifier
|
|
15
|
+
// (non-Tailwind classes such as Bootstrap-style grid helpers).
|
|
16
|
+
// `row`, `no-gutters`, `container`, `container-fluid` are ignored by default.
|
|
17
|
+
'tcy/enforce-tailwind-important': ['error', { ignore: ['my-legacy-class'] }],
|
|
14
18
|
},
|
|
15
19
|
},
|
|
16
20
|
];
|
package/coverage/clover.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
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"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="419" coveredstatements="100" conditionals="404" coveredconditionals="121" methods="86" coveredmethods="18"/>
|
|
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"/>
|
|
@@ -62,73 +62,78 @@
|
|
|
62
62
|
<line num="72" count="0" type="stmt"/>
|
|
63
63
|
</file>
|
|
64
64
|
<file name="enforce-tailwind-important.js" path="/home/runner/work/eslint-rules/eslint-rules/src/enforce-tailwind-important.js">
|
|
65
|
-
<metrics statements="
|
|
66
|
-
<line num="4" count="
|
|
65
|
+
<metrics statements="71" coveredstatements="5" conditionals="63" coveredconditionals="5" methods="21" coveredmethods="3"/>
|
|
66
|
+
<line num="4" count="9" type="stmt"/>
|
|
67
67
|
<line num="6" count="1" type="stmt"/>
|
|
68
|
-
<line num="
|
|
69
|
-
<line num="
|
|
70
|
-
<line num="
|
|
71
|
-
<line num="
|
|
72
|
-
<line num="29" count="0" type="stmt"/>
|
|
73
|
-
<line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
74
|
-
<line num="33" count="0" type="stmt"/>
|
|
75
|
-
<line num="38" count="0" type="stmt"/>
|
|
76
|
-
<line num="39" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
77
|
-
<line num="41" count="0" type="stmt"/>
|
|
78
|
-
<line num="47" count="0" type="stmt"/>
|
|
79
|
-
<line num="48" count="0" type="stmt"/>
|
|
80
|
-
<line num="50" count="0" type="stmt"/>
|
|
81
|
-
<line num="51" count="0" type="stmt"/>
|
|
82
|
-
<line num="53" count="0" type="stmt"/>
|
|
83
|
-
<line num="54" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
84
|
-
<line num="55" count="0" type="stmt"/>
|
|
85
|
-
<line num="58" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
86
|
-
<line num="59" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
68
|
+
<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"/>
|
|
87
72
|
<line num="60" count="0" type="stmt"/>
|
|
88
73
|
<line num="63" count="0" type="stmt"/>
|
|
89
|
-
<line num="64" count="0" type="stmt"/>
|
|
90
|
-
<line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
91
74
|
<line num="69" count="0" type="stmt"/>
|
|
92
|
-
<line num="
|
|
75
|
+
<line num="70" count="0" type="stmt"/>
|
|
76
|
+
<line num="73" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
93
77
|
<line num="74" count="0" type="stmt"/>
|
|
94
|
-
<line num="
|
|
95
|
-
<line num="
|
|
96
|
-
<line num="78" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
97
|
-
<line num="79" count="0" type="stmt"/>
|
|
98
|
-
<line num="82" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
78
|
+
<line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
79
|
+
<line num="78" count="0" type="stmt"/>
|
|
99
80
|
<line num="83" count="0" type="stmt"/>
|
|
100
81
|
<line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
101
|
-
<line num="
|
|
102
|
-
<line num="86" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
103
|
-
<line num="87" count="0" type="stmt"/>
|
|
82
|
+
<line num="86" count="0" type="stmt"/>
|
|
104
83
|
<line num="92" count="0" type="stmt"/>
|
|
105
|
-
<line num="
|
|
106
|
-
<line num="95" count="0" type="
|
|
84
|
+
<line num="93" count="0" type="stmt"/>
|
|
85
|
+
<line num="95" count="0" type="stmt"/>
|
|
107
86
|
<line num="96" count="0" type="stmt"/>
|
|
108
|
-
<line num="
|
|
109
|
-
<line num="
|
|
110
|
-
<line num="
|
|
111
|
-
<line num="
|
|
87
|
+
<line num="98" count="0" type="stmt"/>
|
|
88
|
+
<line num="99" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
89
|
+
<line num="100" count="0" type="stmt"/>
|
|
90
|
+
<line num="103" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
91
|
+
<line num="104" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
92
|
+
<line num="105" count="0" type="stmt"/>
|
|
112
93
|
<line num="108" count="0" type="stmt"/>
|
|
113
|
-
<line num="
|
|
114
|
-
<line num="
|
|
115
|
-
<line num="
|
|
94
|
+
<line num="109" count="0" type="stmt"/>
|
|
95
|
+
<line num="113" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
96
|
+
<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"/>
|
|
116
99
|
<line num="120" count="0" type="stmt"/>
|
|
117
|
-
<line num="
|
|
100
|
+
<line num="122" count="0" type="stmt"/>
|
|
101
|
+
<line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
118
102
|
<line num="124" count="0" type="stmt"/>
|
|
119
|
-
<line num="
|
|
120
|
-
<line num="
|
|
121
|
-
<line num="
|
|
122
|
-
<line num="
|
|
123
|
-
<line num="
|
|
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"/>
|
|
124
110
|
<line num="139" count="0" type="stmt"/>
|
|
125
|
-
<line num="140" count="0" type="cond" truecount="0" falsecount="
|
|
126
|
-
<line num="
|
|
127
|
-
<line num="
|
|
128
|
-
<line num="
|
|
129
|
-
<line num="
|
|
130
|
-
<line num="
|
|
131
|
-
<line num="
|
|
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"/>
|
|
132
137
|
</file>
|
|
133
138
|
<file name="export-specifiers-per-line.js" path="/home/runner/work/eslint-rules/eslint-rules/src/export-specifiers-per-line.js">
|
|
134
139
|
<metrics statements="23" coveredstatements="0" conditionals="12" coveredconditionals="0" methods="4" coveredmethods="0"/>
|
|
@@ -249,6 +254,52 @@
|
|
|
249
254
|
<line num="92" count="0" type="stmt"/>
|
|
250
255
|
<line num="94" count="0" type="stmt"/>
|
|
251
256
|
</file>
|
|
257
|
+
<file name="no-static-key-in-map.js" path="/home/runner/work/eslint-rules/eslint-rules/src/no-static-key-in-map.js">
|
|
258
|
+
<metrics statements="43" coveredstatements="36" conditionals="47" coveredconditionals="37" methods="8" coveredmethods="6"/>
|
|
259
|
+
<line num="28" count="1" type="stmt"/>
|
|
260
|
+
<line num="30" count="1" type="stmt"/>
|
|
261
|
+
<line num="39" count="1" type="stmt"/>
|
|
262
|
+
<line num="47" count="1" type="stmt"/>
|
|
263
|
+
<line num="61" count="1" type="stmt"/>
|
|
264
|
+
<line num="62" count="21" type="cond" truecount="1" falsecount="1"/>
|
|
265
|
+
<line num="63" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
266
|
+
<line num="64" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
267
|
+
<line num="65" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
268
|
+
<line num="66" count="9" type="stmt"/>
|
|
269
|
+
<line num="76" count="1" type="stmt"/>
|
|
270
|
+
<line num="77" count="32" type="cond" truecount="3" falsecount="1"/>
|
|
271
|
+
<line num="79" count="32" type="stmt"/>
|
|
272
|
+
<line num="80" count="28" type="cond" truecount="3" falsecount="0"/>
|
|
273
|
+
<line num="84" count="32" type="cond" truecount="2" falsecount="0"/>
|
|
274
|
+
<line num="86" count="28" type="stmt"/>
|
|
275
|
+
<line num="88" count="28" type="cond" truecount="1" falsecount="1"/>
|
|
276
|
+
<line num="89" count="28" type="cond" truecount="2" falsecount="0"/>
|
|
277
|
+
<line num="90" count="11" type="cond" truecount="2" falsecount="0"/>
|
|
278
|
+
<line num="93" count="17" type="cond" truecount="1" falsecount="1"/>
|
|
279
|
+
<line num="97" count="1" type="stmt"/>
|
|
280
|
+
<line num="98" count="10" type="stmt"/>
|
|
281
|
+
<line num="99" count="10" type="cond" truecount="6" falsecount="0"/>
|
|
282
|
+
<line num="113" count="1" type="stmt"/>
|
|
283
|
+
<line num="114" count="18" type="stmt"/>
|
|
284
|
+
<line num="116" count="18" type="stmt"/>
|
|
285
|
+
<line num="117" count="26" type="cond" truecount="2" falsecount="0"/>
|
|
286
|
+
<line num="118" count="8" type="stmt"/>
|
|
287
|
+
<line num="119" count="8" type="stmt"/>
|
|
288
|
+
<line num="121" count="18" type="cond" truecount="2" falsecount="0"/>
|
|
289
|
+
<line num="125" count="10" type="stmt"/>
|
|
290
|
+
<line num="128" count="8" type="stmt"/>
|
|
291
|
+
<line num="130" count="0" type="stmt"/>
|
|
292
|
+
<line num="136" count="1" type="stmt"/>
|
|
293
|
+
<line num="137" count="23" type="stmt"/>
|
|
294
|
+
<line num="138" count="23" type="cond" truecount="2" falsecount="0"/>
|
|
295
|
+
<line num="139" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
296
|
+
<line num="163" count="0" type="stmt"/>
|
|
297
|
+
<line num="165" count="0" type="stmt"/>
|
|
298
|
+
<line num="166" count="0" type="stmt"/>
|
|
299
|
+
<line num="167" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
300
|
+
<line num="169" count="0" type="stmt"/>
|
|
301
|
+
<line num="178" count="0" type="stmt"/>
|
|
302
|
+
</file>
|
|
252
303
|
<file name="plugin.js" path="/home/runner/work/eslint-rules/eslint-rules/src/plugin.js">
|
|
253
304
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
254
305
|
</file>
|