@mouse_484/eslint-config 5.0.7 → 5.0.8
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/package.json +1 -1
- package/src/configs/stylistic.js +1 -8
- package/src/lib/rules.gen.d.ts +394 -99
package/package.json
CHANGED
package/src/configs/stylistic.js
CHANGED
|
@@ -28,14 +28,7 @@ export default createConfigs({
|
|
|
28
28
|
name: 'markdown',
|
|
29
29
|
files: [GLOB_MARKDOWN],
|
|
30
30
|
rules: {
|
|
31
|
-
'style/max-len':
|
|
32
|
-
'error',
|
|
33
|
-
{
|
|
34
|
-
code: 120,
|
|
35
|
-
ignoreUrls: true,
|
|
36
|
-
ignorePattern: String.raw`^\s*\|`,
|
|
37
|
-
},
|
|
38
|
-
],
|
|
31
|
+
'style/max-len': 'off',
|
|
39
32
|
},
|
|
40
33
|
},
|
|
41
34
|
{
|
package/src/lib/rules.gen.d.ts
CHANGED
|
@@ -9,14 +9,35 @@ declare module 'eslint' {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface RuleOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Enforce a consistent order for tailwind classes.
|
|
14
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md
|
|
15
|
+
*/
|
|
16
|
+
'tailwind/enforce-consistent-class-order'?: Linter.RuleEntry<TailwindEnforceConsistentClassOrder>
|
|
17
|
+
/**
|
|
18
|
+
* Enforce consistent important position for classes.
|
|
19
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-important-position.md
|
|
20
|
+
*/
|
|
21
|
+
'tailwind/enforce-consistent-important-position'?: Linter.RuleEntry<TailwindEnforceConsistentImportantPosition>
|
|
22
|
+
/**
|
|
23
|
+
* Enforce consistent line wrapping for tailwind classes.
|
|
24
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
|
|
25
|
+
*/
|
|
26
|
+
'tailwind/enforce-consistent-line-wrapping'?: Linter.RuleEntry<TailwindEnforceConsistentLineWrapping>
|
|
12
27
|
/**
|
|
13
28
|
* Enforce consistent syntax for css variables.
|
|
14
29
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-variable-syntax.md
|
|
15
30
|
*/
|
|
16
31
|
'tailwind/enforce-consistent-variable-syntax'?: Linter.RuleEntry<TailwindEnforceConsistentVariableSyntax>
|
|
32
|
+
/**
|
|
33
|
+
* Enforce shorthand class names instead of longhand class names.
|
|
34
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-shorthand-classes.md
|
|
35
|
+
*/
|
|
36
|
+
'tailwind/enforce-shorthand-classes'?: Linter.RuleEntry<TailwindEnforceShorthandClasses>
|
|
17
37
|
/**
|
|
18
38
|
* Enforce consistent line wrapping for tailwind classes.
|
|
19
39
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
|
|
40
|
+
* @deprecated
|
|
20
41
|
*/
|
|
21
42
|
'tailwind/multiline'?: Linter.RuleEntry<TailwindMultiline>
|
|
22
43
|
/**
|
|
@@ -24,6 +45,11 @@ export interface RuleOptions {
|
|
|
24
45
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-conflicting-classes.md
|
|
25
46
|
*/
|
|
26
47
|
'tailwind/no-conflicting-classes'?: Linter.RuleEntry<TailwindNoConflictingClasses>
|
|
48
|
+
/**
|
|
49
|
+
* Disallow the use of deprecated Tailwind CSS classes.
|
|
50
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-deprecated-classes.md
|
|
51
|
+
*/
|
|
52
|
+
'tailwind/no-deprecated-classes'?: Linter.RuleEntry<TailwindNoDeprecatedClasses>
|
|
27
53
|
/**
|
|
28
54
|
* Disallow duplicate class names in tailwind classes.
|
|
29
55
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-duplicate-classes.md
|
|
@@ -46,88 +72,361 @@ export interface RuleOptions {
|
|
|
46
72
|
'tailwind/no-unregistered-classes'?: Linter.RuleEntry<TailwindNoUnregisteredClasses>
|
|
47
73
|
/**
|
|
48
74
|
* Enforce a consistent order for tailwind classes.
|
|
49
|
-
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/
|
|
75
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md
|
|
76
|
+
* @deprecated
|
|
50
77
|
*/
|
|
51
78
|
'tailwind/sort-classes'?: Linter.RuleEntry<TailwindSortClasses>
|
|
52
79
|
}
|
|
53
80
|
|
|
54
81
|
/* ======= Declarations ======= */
|
|
82
|
+
// ----- tailwind/enforce-consistent-class-order -----
|
|
83
|
+
type TailwindEnforceConsistentClassOrder = []|[{
|
|
84
|
+
|
|
85
|
+
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
86
|
+
|
|
87
|
+
match?: "strings"
|
|
88
|
+
} | {
|
|
89
|
+
|
|
90
|
+
match?: "objectKeys"
|
|
91
|
+
|
|
92
|
+
pathPattern?: string
|
|
93
|
+
} | {
|
|
94
|
+
|
|
95
|
+
match?: "objectValues"
|
|
96
|
+
|
|
97
|
+
pathPattern?: string
|
|
98
|
+
})[]] | string)[]
|
|
99
|
+
|
|
100
|
+
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
101
|
+
|
|
102
|
+
match?: "strings"
|
|
103
|
+
} | {
|
|
104
|
+
|
|
105
|
+
match?: "objectKeys"
|
|
106
|
+
|
|
107
|
+
pathPattern?: string
|
|
108
|
+
} | {
|
|
109
|
+
|
|
110
|
+
match?: "objectValues"
|
|
111
|
+
|
|
112
|
+
pathPattern?: string
|
|
113
|
+
})[]])[]
|
|
114
|
+
|
|
115
|
+
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
116
|
+
|
|
117
|
+
match?: "strings"
|
|
118
|
+
} | {
|
|
119
|
+
|
|
120
|
+
match?: "objectKeys"
|
|
121
|
+
|
|
122
|
+
pathPattern?: string
|
|
123
|
+
} | {
|
|
124
|
+
|
|
125
|
+
match?: "objectValues"
|
|
126
|
+
|
|
127
|
+
pathPattern?: string
|
|
128
|
+
})[]] | string)[]
|
|
129
|
+
|
|
130
|
+
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
131
|
+
|
|
132
|
+
match?: "strings"
|
|
133
|
+
} | {
|
|
134
|
+
|
|
135
|
+
match?: "objectKeys"
|
|
136
|
+
|
|
137
|
+
pathPattern?: string
|
|
138
|
+
} | {
|
|
139
|
+
|
|
140
|
+
match?: "objectValues"
|
|
141
|
+
|
|
142
|
+
pathPattern?: string
|
|
143
|
+
})[]] | string)[]
|
|
144
|
+
|
|
145
|
+
entryPoint?: string
|
|
146
|
+
|
|
147
|
+
tailwindConfig?: string
|
|
148
|
+
|
|
149
|
+
order?: ("asc" | "desc" | "official" | "improved")
|
|
150
|
+
}]
|
|
151
|
+
// ----- tailwind/enforce-consistent-important-position -----
|
|
152
|
+
type TailwindEnforceConsistentImportantPosition = []|[{
|
|
153
|
+
|
|
154
|
+
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
155
|
+
|
|
156
|
+
match?: "strings"
|
|
157
|
+
} | {
|
|
158
|
+
|
|
159
|
+
match?: "objectKeys"
|
|
160
|
+
|
|
161
|
+
pathPattern?: string
|
|
162
|
+
} | {
|
|
163
|
+
|
|
164
|
+
match?: "objectValues"
|
|
165
|
+
|
|
166
|
+
pathPattern?: string
|
|
167
|
+
})[]] | string)[]
|
|
168
|
+
|
|
169
|
+
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
170
|
+
|
|
171
|
+
match?: "strings"
|
|
172
|
+
} | {
|
|
173
|
+
|
|
174
|
+
match?: "objectKeys"
|
|
175
|
+
|
|
176
|
+
pathPattern?: string
|
|
177
|
+
} | {
|
|
178
|
+
|
|
179
|
+
match?: "objectValues"
|
|
180
|
+
|
|
181
|
+
pathPattern?: string
|
|
182
|
+
})[]])[]
|
|
183
|
+
|
|
184
|
+
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
185
|
+
|
|
186
|
+
match?: "strings"
|
|
187
|
+
} | {
|
|
188
|
+
|
|
189
|
+
match?: "objectKeys"
|
|
190
|
+
|
|
191
|
+
pathPattern?: string
|
|
192
|
+
} | {
|
|
193
|
+
|
|
194
|
+
match?: "objectValues"
|
|
195
|
+
|
|
196
|
+
pathPattern?: string
|
|
197
|
+
})[]] | string)[]
|
|
198
|
+
|
|
199
|
+
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
200
|
+
|
|
201
|
+
match?: "strings"
|
|
202
|
+
} | {
|
|
203
|
+
|
|
204
|
+
match?: "objectKeys"
|
|
205
|
+
|
|
206
|
+
pathPattern?: string
|
|
207
|
+
} | {
|
|
208
|
+
|
|
209
|
+
match?: "objectValues"
|
|
210
|
+
|
|
211
|
+
pathPattern?: string
|
|
212
|
+
})[]] | string)[]
|
|
213
|
+
|
|
214
|
+
entryPoint?: string
|
|
215
|
+
|
|
216
|
+
tailwindConfig?: string
|
|
217
|
+
|
|
218
|
+
position?: ("legacy" | "recommended")
|
|
219
|
+
}]
|
|
220
|
+
// ----- tailwind/enforce-consistent-line-wrapping -----
|
|
221
|
+
type TailwindEnforceConsistentLineWrapping = []|[{
|
|
222
|
+
|
|
223
|
+
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
224
|
+
|
|
225
|
+
match?: "strings"
|
|
226
|
+
} | {
|
|
227
|
+
|
|
228
|
+
match?: "objectKeys"
|
|
229
|
+
|
|
230
|
+
pathPattern?: string
|
|
231
|
+
} | {
|
|
232
|
+
|
|
233
|
+
match?: "objectValues"
|
|
234
|
+
|
|
235
|
+
pathPattern?: string
|
|
236
|
+
})[]] | string)[]
|
|
237
|
+
|
|
238
|
+
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
239
|
+
|
|
240
|
+
match?: "strings"
|
|
241
|
+
} | {
|
|
242
|
+
|
|
243
|
+
match?: "objectKeys"
|
|
244
|
+
|
|
245
|
+
pathPattern?: string
|
|
246
|
+
} | {
|
|
247
|
+
|
|
248
|
+
match?: "objectValues"
|
|
249
|
+
|
|
250
|
+
pathPattern?: string
|
|
251
|
+
})[]])[]
|
|
252
|
+
|
|
253
|
+
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
254
|
+
|
|
255
|
+
match?: "strings"
|
|
256
|
+
} | {
|
|
257
|
+
|
|
258
|
+
match?: "objectKeys"
|
|
259
|
+
|
|
260
|
+
pathPattern?: string
|
|
261
|
+
} | {
|
|
262
|
+
|
|
263
|
+
match?: "objectValues"
|
|
264
|
+
|
|
265
|
+
pathPattern?: string
|
|
266
|
+
})[]] | string)[]
|
|
267
|
+
|
|
268
|
+
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
269
|
+
|
|
270
|
+
match?: "strings"
|
|
271
|
+
} | {
|
|
272
|
+
|
|
273
|
+
match?: "objectKeys"
|
|
274
|
+
|
|
275
|
+
pathPattern?: string
|
|
276
|
+
} | {
|
|
277
|
+
|
|
278
|
+
match?: "objectValues"
|
|
279
|
+
|
|
280
|
+
pathPattern?: string
|
|
281
|
+
})[]] | string)[]
|
|
282
|
+
|
|
283
|
+
entryPoint?: string
|
|
284
|
+
|
|
285
|
+
tailwindConfig?: string
|
|
286
|
+
|
|
287
|
+
classesPerLine?: number
|
|
288
|
+
|
|
289
|
+
group?: ("emptyLine" | "never" | "newLine")
|
|
290
|
+
|
|
291
|
+
indent?: ("tab" | number)
|
|
292
|
+
|
|
293
|
+
lineBreakStyle?: ("unix" | "windows")
|
|
294
|
+
|
|
295
|
+
preferSingleLine?: boolean
|
|
296
|
+
|
|
297
|
+
printWidth?: number
|
|
298
|
+
}]
|
|
55
299
|
// ----- tailwind/enforce-consistent-variable-syntax -----
|
|
56
300
|
type TailwindEnforceConsistentVariableSyntax = []|[{
|
|
57
301
|
|
|
58
302
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
59
303
|
|
|
60
304
|
match?: "strings"
|
|
61
|
-
[k: string]: unknown | undefined
|
|
62
305
|
} | {
|
|
63
306
|
|
|
64
307
|
match?: "objectKeys"
|
|
65
308
|
|
|
66
309
|
pathPattern?: string
|
|
67
|
-
[k: string]: unknown | undefined
|
|
68
310
|
} | {
|
|
69
311
|
|
|
70
312
|
match?: "objectValues"
|
|
71
313
|
|
|
72
314
|
pathPattern?: string
|
|
73
|
-
[k: string]: unknown | undefined
|
|
74
315
|
})[]] | string)[]
|
|
75
316
|
|
|
76
317
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
77
318
|
|
|
78
319
|
match?: "strings"
|
|
79
|
-
[k: string]: unknown | undefined
|
|
80
320
|
} | {
|
|
81
321
|
|
|
82
322
|
match?: "objectKeys"
|
|
83
323
|
|
|
84
324
|
pathPattern?: string
|
|
85
|
-
[k: string]: unknown | undefined
|
|
86
325
|
} | {
|
|
87
326
|
|
|
88
327
|
match?: "objectValues"
|
|
89
328
|
|
|
90
329
|
pathPattern?: string
|
|
91
|
-
[k: string]: unknown | undefined
|
|
92
330
|
})[]])[]
|
|
93
331
|
|
|
94
332
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
95
333
|
|
|
96
334
|
match?: "strings"
|
|
97
|
-
[k: string]: unknown | undefined
|
|
98
335
|
} | {
|
|
99
336
|
|
|
100
337
|
match?: "objectKeys"
|
|
101
338
|
|
|
102
339
|
pathPattern?: string
|
|
103
|
-
[k: string]: unknown | undefined
|
|
104
340
|
} | {
|
|
105
341
|
|
|
106
342
|
match?: "objectValues"
|
|
107
343
|
|
|
108
344
|
pathPattern?: string
|
|
109
|
-
[k: string]: unknown | undefined
|
|
110
345
|
})[]] | string)[]
|
|
111
346
|
|
|
112
347
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
113
348
|
|
|
114
349
|
match?: "strings"
|
|
115
|
-
[k: string]: unknown | undefined
|
|
116
350
|
} | {
|
|
117
351
|
|
|
118
352
|
match?: "objectKeys"
|
|
119
353
|
|
|
120
354
|
pathPattern?: string
|
|
121
|
-
[k: string]: unknown | undefined
|
|
122
355
|
} | {
|
|
123
356
|
|
|
124
357
|
match?: "objectValues"
|
|
125
358
|
|
|
126
359
|
pathPattern?: string
|
|
127
|
-
[k: string]: unknown | undefined
|
|
128
360
|
})[]] | string)[]
|
|
129
361
|
|
|
130
|
-
syntax?: ("arbitrary" | "parentheses")
|
|
362
|
+
syntax?: ("arbitrary" | "parentheses" | "shorthand" | "variable")
|
|
363
|
+
}]
|
|
364
|
+
// ----- tailwind/enforce-shorthand-classes -----
|
|
365
|
+
type TailwindEnforceShorthandClasses = []|[{
|
|
366
|
+
|
|
367
|
+
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
368
|
+
|
|
369
|
+
match?: "strings"
|
|
370
|
+
} | {
|
|
371
|
+
|
|
372
|
+
match?: "objectKeys"
|
|
373
|
+
|
|
374
|
+
pathPattern?: string
|
|
375
|
+
} | {
|
|
376
|
+
|
|
377
|
+
match?: "objectValues"
|
|
378
|
+
|
|
379
|
+
pathPattern?: string
|
|
380
|
+
})[]] | string)[]
|
|
381
|
+
|
|
382
|
+
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
383
|
+
|
|
384
|
+
match?: "strings"
|
|
385
|
+
} | {
|
|
386
|
+
|
|
387
|
+
match?: "objectKeys"
|
|
388
|
+
|
|
389
|
+
pathPattern?: string
|
|
390
|
+
} | {
|
|
391
|
+
|
|
392
|
+
match?: "objectValues"
|
|
393
|
+
|
|
394
|
+
pathPattern?: string
|
|
395
|
+
})[]])[]
|
|
396
|
+
|
|
397
|
+
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
398
|
+
|
|
399
|
+
match?: "strings"
|
|
400
|
+
} | {
|
|
401
|
+
|
|
402
|
+
match?: "objectKeys"
|
|
403
|
+
|
|
404
|
+
pathPattern?: string
|
|
405
|
+
} | {
|
|
406
|
+
|
|
407
|
+
match?: "objectValues"
|
|
408
|
+
|
|
409
|
+
pathPattern?: string
|
|
410
|
+
})[]] | string)[]
|
|
411
|
+
|
|
412
|
+
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
413
|
+
|
|
414
|
+
match?: "strings"
|
|
415
|
+
} | {
|
|
416
|
+
|
|
417
|
+
match?: "objectKeys"
|
|
418
|
+
|
|
419
|
+
pathPattern?: string
|
|
420
|
+
} | {
|
|
421
|
+
|
|
422
|
+
match?: "objectValues"
|
|
423
|
+
|
|
424
|
+
pathPattern?: string
|
|
425
|
+
})[]] | string)[]
|
|
426
|
+
|
|
427
|
+
entryPoint?: string
|
|
428
|
+
|
|
429
|
+
tailwindConfig?: string
|
|
131
430
|
}]
|
|
132
431
|
// ----- tailwind/multiline -----
|
|
133
432
|
type TailwindMultiline = []|[{
|
|
@@ -135,75 +434,67 @@ type TailwindMultiline = []|[{
|
|
|
135
434
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
136
435
|
|
|
137
436
|
match?: "strings"
|
|
138
|
-
[k: string]: unknown | undefined
|
|
139
437
|
} | {
|
|
140
438
|
|
|
141
439
|
match?: "objectKeys"
|
|
142
440
|
|
|
143
441
|
pathPattern?: string
|
|
144
|
-
[k: string]: unknown | undefined
|
|
145
442
|
} | {
|
|
146
443
|
|
|
147
444
|
match?: "objectValues"
|
|
148
445
|
|
|
149
446
|
pathPattern?: string
|
|
150
|
-
[k: string]: unknown | undefined
|
|
151
447
|
})[]] | string)[]
|
|
152
448
|
|
|
153
449
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
154
450
|
|
|
155
451
|
match?: "strings"
|
|
156
|
-
[k: string]: unknown | undefined
|
|
157
452
|
} | {
|
|
158
453
|
|
|
159
454
|
match?: "objectKeys"
|
|
160
455
|
|
|
161
456
|
pathPattern?: string
|
|
162
|
-
[k: string]: unknown | undefined
|
|
163
457
|
} | {
|
|
164
458
|
|
|
165
459
|
match?: "objectValues"
|
|
166
460
|
|
|
167
461
|
pathPattern?: string
|
|
168
|
-
[k: string]: unknown | undefined
|
|
169
462
|
})[]])[]
|
|
170
463
|
|
|
171
464
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
172
465
|
|
|
173
466
|
match?: "strings"
|
|
174
|
-
[k: string]: unknown | undefined
|
|
175
467
|
} | {
|
|
176
468
|
|
|
177
469
|
match?: "objectKeys"
|
|
178
470
|
|
|
179
471
|
pathPattern?: string
|
|
180
|
-
[k: string]: unknown | undefined
|
|
181
472
|
} | {
|
|
182
473
|
|
|
183
474
|
match?: "objectValues"
|
|
184
475
|
|
|
185
476
|
pathPattern?: string
|
|
186
|
-
[k: string]: unknown | undefined
|
|
187
477
|
})[]] | string)[]
|
|
188
478
|
|
|
189
479
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
190
480
|
|
|
191
481
|
match?: "strings"
|
|
192
|
-
[k: string]: unknown | undefined
|
|
193
482
|
} | {
|
|
194
483
|
|
|
195
484
|
match?: "objectKeys"
|
|
196
485
|
|
|
197
486
|
pathPattern?: string
|
|
198
|
-
[k: string]: unknown | undefined
|
|
199
487
|
} | {
|
|
200
488
|
|
|
201
489
|
match?: "objectValues"
|
|
202
490
|
|
|
203
491
|
pathPattern?: string
|
|
204
|
-
[k: string]: unknown | undefined
|
|
205
492
|
})[]] | string)[]
|
|
206
493
|
|
|
494
|
+
entryPoint?: string
|
|
495
|
+
|
|
496
|
+
tailwindConfig?: string
|
|
497
|
+
|
|
207
498
|
classesPerLine?: number
|
|
208
499
|
|
|
209
500
|
group?: ("emptyLine" | "never" | "newLine")
|
|
@@ -222,73 +513,128 @@ type TailwindNoConflictingClasses = []|[{
|
|
|
222
513
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
223
514
|
|
|
224
515
|
match?: "strings"
|
|
225
|
-
[k: string]: unknown | undefined
|
|
226
516
|
} | {
|
|
227
517
|
|
|
228
518
|
match?: "objectKeys"
|
|
229
519
|
|
|
230
520
|
pathPattern?: string
|
|
231
|
-
[k: string]: unknown | undefined
|
|
232
521
|
} | {
|
|
233
522
|
|
|
234
523
|
match?: "objectValues"
|
|
235
524
|
|
|
236
525
|
pathPattern?: string
|
|
237
|
-
[k: string]: unknown | undefined
|
|
238
526
|
})[]] | string)[]
|
|
239
527
|
|
|
240
528
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
241
529
|
|
|
242
530
|
match?: "strings"
|
|
243
|
-
[k: string]: unknown | undefined
|
|
244
531
|
} | {
|
|
245
532
|
|
|
246
533
|
match?: "objectKeys"
|
|
247
534
|
|
|
248
535
|
pathPattern?: string
|
|
249
|
-
[k: string]: unknown | undefined
|
|
250
536
|
} | {
|
|
251
537
|
|
|
252
538
|
match?: "objectValues"
|
|
253
539
|
|
|
254
540
|
pathPattern?: string
|
|
255
|
-
[k: string]: unknown | undefined
|
|
256
541
|
})[]])[]
|
|
257
542
|
|
|
258
543
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
259
544
|
|
|
260
545
|
match?: "strings"
|
|
261
|
-
[k: string]: unknown | undefined
|
|
262
546
|
} | {
|
|
263
547
|
|
|
264
548
|
match?: "objectKeys"
|
|
265
549
|
|
|
266
550
|
pathPattern?: string
|
|
267
|
-
[k: string]: unknown | undefined
|
|
268
551
|
} | {
|
|
269
552
|
|
|
270
553
|
match?: "objectValues"
|
|
271
554
|
|
|
272
555
|
pathPattern?: string
|
|
273
|
-
[k: string]: unknown | undefined
|
|
274
556
|
})[]] | string)[]
|
|
275
557
|
|
|
276
558
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
277
559
|
|
|
278
560
|
match?: "strings"
|
|
279
|
-
[k: string]: unknown | undefined
|
|
280
561
|
} | {
|
|
281
562
|
|
|
282
563
|
match?: "objectKeys"
|
|
283
564
|
|
|
284
565
|
pathPattern?: string
|
|
285
|
-
[k: string]: unknown | undefined
|
|
286
566
|
} | {
|
|
287
567
|
|
|
288
568
|
match?: "objectValues"
|
|
289
569
|
|
|
290
570
|
pathPattern?: string
|
|
291
|
-
|
|
571
|
+
})[]] | string)[]
|
|
572
|
+
|
|
573
|
+
entryPoint?: string
|
|
574
|
+
|
|
575
|
+
tailwindConfig?: string
|
|
576
|
+
}]
|
|
577
|
+
// ----- tailwind/no-deprecated-classes -----
|
|
578
|
+
type TailwindNoDeprecatedClasses = []|[{
|
|
579
|
+
|
|
580
|
+
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
581
|
+
|
|
582
|
+
match?: "strings"
|
|
583
|
+
} | {
|
|
584
|
+
|
|
585
|
+
match?: "objectKeys"
|
|
586
|
+
|
|
587
|
+
pathPattern?: string
|
|
588
|
+
} | {
|
|
589
|
+
|
|
590
|
+
match?: "objectValues"
|
|
591
|
+
|
|
592
|
+
pathPattern?: string
|
|
593
|
+
})[]] | string)[]
|
|
594
|
+
|
|
595
|
+
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
596
|
+
|
|
597
|
+
match?: "strings"
|
|
598
|
+
} | {
|
|
599
|
+
|
|
600
|
+
match?: "objectKeys"
|
|
601
|
+
|
|
602
|
+
pathPattern?: string
|
|
603
|
+
} | {
|
|
604
|
+
|
|
605
|
+
match?: "objectValues"
|
|
606
|
+
|
|
607
|
+
pathPattern?: string
|
|
608
|
+
})[]])[]
|
|
609
|
+
|
|
610
|
+
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
611
|
+
|
|
612
|
+
match?: "strings"
|
|
613
|
+
} | {
|
|
614
|
+
|
|
615
|
+
match?: "objectKeys"
|
|
616
|
+
|
|
617
|
+
pathPattern?: string
|
|
618
|
+
} | {
|
|
619
|
+
|
|
620
|
+
match?: "objectValues"
|
|
621
|
+
|
|
622
|
+
pathPattern?: string
|
|
623
|
+
})[]] | string)[]
|
|
624
|
+
|
|
625
|
+
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
626
|
+
|
|
627
|
+
match?: "strings"
|
|
628
|
+
} | {
|
|
629
|
+
|
|
630
|
+
match?: "objectKeys"
|
|
631
|
+
|
|
632
|
+
pathPattern?: string
|
|
633
|
+
} | {
|
|
634
|
+
|
|
635
|
+
match?: "objectValues"
|
|
636
|
+
|
|
637
|
+
pathPattern?: string
|
|
292
638
|
})[]] | string)[]
|
|
293
639
|
|
|
294
640
|
entryPoint?: string
|
|
@@ -301,73 +647,61 @@ type TailwindNoDuplicateClasses = []|[{
|
|
|
301
647
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
302
648
|
|
|
303
649
|
match?: "strings"
|
|
304
|
-
[k: string]: unknown | undefined
|
|
305
650
|
} | {
|
|
306
651
|
|
|
307
652
|
match?: "objectKeys"
|
|
308
653
|
|
|
309
654
|
pathPattern?: string
|
|
310
|
-
[k: string]: unknown | undefined
|
|
311
655
|
} | {
|
|
312
656
|
|
|
313
657
|
match?: "objectValues"
|
|
314
658
|
|
|
315
659
|
pathPattern?: string
|
|
316
|
-
[k: string]: unknown | undefined
|
|
317
660
|
})[]] | string)[]
|
|
318
661
|
|
|
319
662
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
320
663
|
|
|
321
664
|
match?: "strings"
|
|
322
|
-
[k: string]: unknown | undefined
|
|
323
665
|
} | {
|
|
324
666
|
|
|
325
667
|
match?: "objectKeys"
|
|
326
668
|
|
|
327
669
|
pathPattern?: string
|
|
328
|
-
[k: string]: unknown | undefined
|
|
329
670
|
} | {
|
|
330
671
|
|
|
331
672
|
match?: "objectValues"
|
|
332
673
|
|
|
333
674
|
pathPattern?: string
|
|
334
|
-
[k: string]: unknown | undefined
|
|
335
675
|
})[]])[]
|
|
336
676
|
|
|
337
677
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
338
678
|
|
|
339
679
|
match?: "strings"
|
|
340
|
-
[k: string]: unknown | undefined
|
|
341
680
|
} | {
|
|
342
681
|
|
|
343
682
|
match?: "objectKeys"
|
|
344
683
|
|
|
345
684
|
pathPattern?: string
|
|
346
|
-
[k: string]: unknown | undefined
|
|
347
685
|
} | {
|
|
348
686
|
|
|
349
687
|
match?: "objectValues"
|
|
350
688
|
|
|
351
689
|
pathPattern?: string
|
|
352
|
-
[k: string]: unknown | undefined
|
|
353
690
|
})[]] | string)[]
|
|
354
691
|
|
|
355
692
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
356
693
|
|
|
357
694
|
match?: "strings"
|
|
358
|
-
[k: string]: unknown | undefined
|
|
359
695
|
} | {
|
|
360
696
|
|
|
361
697
|
match?: "objectKeys"
|
|
362
698
|
|
|
363
699
|
pathPattern?: string
|
|
364
|
-
[k: string]: unknown | undefined
|
|
365
700
|
} | {
|
|
366
701
|
|
|
367
702
|
match?: "objectValues"
|
|
368
703
|
|
|
369
704
|
pathPattern?: string
|
|
370
|
-
[k: string]: unknown | undefined
|
|
371
705
|
})[]] | string)[]
|
|
372
706
|
}]
|
|
373
707
|
// ----- tailwind/no-restricted-classes -----
|
|
@@ -376,75 +710,70 @@ type TailwindNoRestrictedClasses = []|[{
|
|
|
376
710
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
377
711
|
|
|
378
712
|
match?: "strings"
|
|
379
|
-
[k: string]: unknown | undefined
|
|
380
713
|
} | {
|
|
381
714
|
|
|
382
715
|
match?: "objectKeys"
|
|
383
716
|
|
|
384
717
|
pathPattern?: string
|
|
385
|
-
[k: string]: unknown | undefined
|
|
386
718
|
} | {
|
|
387
719
|
|
|
388
720
|
match?: "objectValues"
|
|
389
721
|
|
|
390
722
|
pathPattern?: string
|
|
391
|
-
[k: string]: unknown | undefined
|
|
392
723
|
})[]] | string)[]
|
|
393
724
|
|
|
394
725
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
395
726
|
|
|
396
727
|
match?: "strings"
|
|
397
|
-
[k: string]: unknown | undefined
|
|
398
728
|
} | {
|
|
399
729
|
|
|
400
730
|
match?: "objectKeys"
|
|
401
731
|
|
|
402
732
|
pathPattern?: string
|
|
403
|
-
[k: string]: unknown | undefined
|
|
404
733
|
} | {
|
|
405
734
|
|
|
406
735
|
match?: "objectValues"
|
|
407
736
|
|
|
408
737
|
pathPattern?: string
|
|
409
|
-
[k: string]: unknown | undefined
|
|
410
738
|
})[]])[]
|
|
411
739
|
|
|
412
740
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
413
741
|
|
|
414
742
|
match?: "strings"
|
|
415
|
-
[k: string]: unknown | undefined
|
|
416
743
|
} | {
|
|
417
744
|
|
|
418
745
|
match?: "objectKeys"
|
|
419
746
|
|
|
420
747
|
pathPattern?: string
|
|
421
|
-
[k: string]: unknown | undefined
|
|
422
748
|
} | {
|
|
423
749
|
|
|
424
750
|
match?: "objectValues"
|
|
425
751
|
|
|
426
752
|
pathPattern?: string
|
|
427
|
-
[k: string]: unknown | undefined
|
|
428
753
|
})[]] | string)[]
|
|
429
754
|
|
|
430
755
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
431
756
|
|
|
432
757
|
match?: "strings"
|
|
433
|
-
[k: string]: unknown | undefined
|
|
434
758
|
} | {
|
|
435
759
|
|
|
436
760
|
match?: "objectKeys"
|
|
437
761
|
|
|
438
762
|
pathPattern?: string
|
|
439
|
-
[k: string]: unknown | undefined
|
|
440
763
|
} | {
|
|
441
764
|
|
|
442
765
|
match?: "objectValues"
|
|
443
766
|
|
|
444
767
|
pathPattern?: string
|
|
445
|
-
[k: string]: unknown | undefined
|
|
446
768
|
})[]] | string)[]
|
|
447
|
-
restrict?:
|
|
769
|
+
restrict?: ({
|
|
770
|
+
|
|
771
|
+
fix?: string
|
|
772
|
+
|
|
773
|
+
message?: string
|
|
774
|
+
|
|
775
|
+
pattern: string
|
|
776
|
+
} | string)[]
|
|
448
777
|
}]
|
|
449
778
|
// ----- tailwind/no-unnecessary-whitespace -----
|
|
450
779
|
type TailwindNoUnnecessaryWhitespace = []|[{
|
|
@@ -454,73 +783,61 @@ type TailwindNoUnnecessaryWhitespace = []|[{
|
|
|
454
783
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
455
784
|
|
|
456
785
|
match?: "strings"
|
|
457
|
-
[k: string]: unknown | undefined
|
|
458
786
|
} | {
|
|
459
787
|
|
|
460
788
|
match?: "objectKeys"
|
|
461
789
|
|
|
462
790
|
pathPattern?: string
|
|
463
|
-
[k: string]: unknown | undefined
|
|
464
791
|
} | {
|
|
465
792
|
|
|
466
793
|
match?: "objectValues"
|
|
467
794
|
|
|
468
795
|
pathPattern?: string
|
|
469
|
-
[k: string]: unknown | undefined
|
|
470
796
|
})[]] | string)[]
|
|
471
797
|
|
|
472
798
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
473
799
|
|
|
474
800
|
match?: "strings"
|
|
475
|
-
[k: string]: unknown | undefined
|
|
476
801
|
} | {
|
|
477
802
|
|
|
478
803
|
match?: "objectKeys"
|
|
479
804
|
|
|
480
805
|
pathPattern?: string
|
|
481
|
-
[k: string]: unknown | undefined
|
|
482
806
|
} | {
|
|
483
807
|
|
|
484
808
|
match?: "objectValues"
|
|
485
809
|
|
|
486
810
|
pathPattern?: string
|
|
487
|
-
[k: string]: unknown | undefined
|
|
488
811
|
})[]])[]
|
|
489
812
|
|
|
490
813
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
491
814
|
|
|
492
815
|
match?: "strings"
|
|
493
|
-
[k: string]: unknown | undefined
|
|
494
816
|
} | {
|
|
495
817
|
|
|
496
818
|
match?: "objectKeys"
|
|
497
819
|
|
|
498
820
|
pathPattern?: string
|
|
499
|
-
[k: string]: unknown | undefined
|
|
500
821
|
} | {
|
|
501
822
|
|
|
502
823
|
match?: "objectValues"
|
|
503
824
|
|
|
504
825
|
pathPattern?: string
|
|
505
|
-
[k: string]: unknown | undefined
|
|
506
826
|
})[]] | string)[]
|
|
507
827
|
|
|
508
828
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
509
829
|
|
|
510
830
|
match?: "strings"
|
|
511
|
-
[k: string]: unknown | undefined
|
|
512
831
|
} | {
|
|
513
832
|
|
|
514
833
|
match?: "objectKeys"
|
|
515
834
|
|
|
516
835
|
pathPattern?: string
|
|
517
|
-
[k: string]: unknown | undefined
|
|
518
836
|
} | {
|
|
519
837
|
|
|
520
838
|
match?: "objectValues"
|
|
521
839
|
|
|
522
840
|
pathPattern?: string
|
|
523
|
-
[k: string]: unknown | undefined
|
|
524
841
|
})[]] | string)[]
|
|
525
842
|
}]
|
|
526
843
|
// ----- tailwind/no-unregistered-classes -----
|
|
@@ -529,79 +846,69 @@ type TailwindNoUnregisteredClasses = []|[{
|
|
|
529
846
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
530
847
|
|
|
531
848
|
match?: "strings"
|
|
532
|
-
[k: string]: unknown | undefined
|
|
533
849
|
} | {
|
|
534
850
|
|
|
535
851
|
match?: "objectKeys"
|
|
536
852
|
|
|
537
853
|
pathPattern?: string
|
|
538
|
-
[k: string]: unknown | undefined
|
|
539
854
|
} | {
|
|
540
855
|
|
|
541
856
|
match?: "objectValues"
|
|
542
857
|
|
|
543
858
|
pathPattern?: string
|
|
544
|
-
[k: string]: unknown | undefined
|
|
545
859
|
})[]] | string)[]
|
|
546
860
|
|
|
547
861
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
548
862
|
|
|
549
863
|
match?: "strings"
|
|
550
|
-
[k: string]: unknown | undefined
|
|
551
864
|
} | {
|
|
552
865
|
|
|
553
866
|
match?: "objectKeys"
|
|
554
867
|
|
|
555
868
|
pathPattern?: string
|
|
556
|
-
[k: string]: unknown | undefined
|
|
557
869
|
} | {
|
|
558
870
|
|
|
559
871
|
match?: "objectValues"
|
|
560
872
|
|
|
561
873
|
pathPattern?: string
|
|
562
|
-
[k: string]: unknown | undefined
|
|
563
874
|
})[]])[]
|
|
564
875
|
|
|
565
876
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
566
877
|
|
|
567
878
|
match?: "strings"
|
|
568
|
-
[k: string]: unknown | undefined
|
|
569
879
|
} | {
|
|
570
880
|
|
|
571
881
|
match?: "objectKeys"
|
|
572
882
|
|
|
573
883
|
pathPattern?: string
|
|
574
|
-
[k: string]: unknown | undefined
|
|
575
884
|
} | {
|
|
576
885
|
|
|
577
886
|
match?: "objectValues"
|
|
578
887
|
|
|
579
888
|
pathPattern?: string
|
|
580
|
-
[k: string]: unknown | undefined
|
|
581
889
|
})[]] | string)[]
|
|
582
890
|
|
|
583
891
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
584
892
|
|
|
585
893
|
match?: "strings"
|
|
586
|
-
[k: string]: unknown | undefined
|
|
587
894
|
} | {
|
|
588
895
|
|
|
589
896
|
match?: "objectKeys"
|
|
590
897
|
|
|
591
898
|
pathPattern?: string
|
|
592
|
-
[k: string]: unknown | undefined
|
|
593
899
|
} | {
|
|
594
900
|
|
|
595
901
|
match?: "objectValues"
|
|
596
902
|
|
|
597
903
|
pathPattern?: string
|
|
598
|
-
[k: string]: unknown | undefined
|
|
599
904
|
})[]] | string)[]
|
|
600
905
|
|
|
601
906
|
entryPoint?: string
|
|
602
907
|
|
|
603
908
|
tailwindConfig?: string
|
|
604
909
|
|
|
910
|
+
detectComponentClasses?: boolean
|
|
911
|
+
|
|
605
912
|
ignore?: string[]
|
|
606
913
|
}]
|
|
607
914
|
// ----- tailwind/sort-classes -----
|
|
@@ -610,73 +917,61 @@ type TailwindSortClasses = []|[{
|
|
|
610
917
|
callees?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
611
918
|
|
|
612
919
|
match?: "strings"
|
|
613
|
-
[k: string]: unknown | undefined
|
|
614
920
|
} | {
|
|
615
921
|
|
|
616
922
|
match?: "objectKeys"
|
|
617
923
|
|
|
618
924
|
pathPattern?: string
|
|
619
|
-
[k: string]: unknown | undefined
|
|
620
925
|
} | {
|
|
621
926
|
|
|
622
927
|
match?: "objectValues"
|
|
623
928
|
|
|
624
929
|
pathPattern?: string
|
|
625
|
-
[k: string]: unknown | undefined
|
|
626
930
|
})[]] | string)[]
|
|
627
931
|
|
|
628
932
|
attributes?: (string | []|[string]|[string, string] | []|[string]|[string, ({
|
|
629
933
|
|
|
630
934
|
match?: "strings"
|
|
631
|
-
[k: string]: unknown | undefined
|
|
632
935
|
} | {
|
|
633
936
|
|
|
634
937
|
match?: "objectKeys"
|
|
635
938
|
|
|
636
939
|
pathPattern?: string
|
|
637
|
-
[k: string]: unknown | undefined
|
|
638
940
|
} | {
|
|
639
941
|
|
|
640
942
|
match?: "objectValues"
|
|
641
943
|
|
|
642
944
|
pathPattern?: string
|
|
643
|
-
[k: string]: unknown | undefined
|
|
644
945
|
})[]])[]
|
|
645
946
|
|
|
646
947
|
variables?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
647
948
|
|
|
648
949
|
match?: "strings"
|
|
649
|
-
[k: string]: unknown | undefined
|
|
650
950
|
} | {
|
|
651
951
|
|
|
652
952
|
match?: "objectKeys"
|
|
653
953
|
|
|
654
954
|
pathPattern?: string
|
|
655
|
-
[k: string]: unknown | undefined
|
|
656
955
|
} | {
|
|
657
956
|
|
|
658
957
|
match?: "objectValues"
|
|
659
958
|
|
|
660
959
|
pathPattern?: string
|
|
661
|
-
[k: string]: unknown | undefined
|
|
662
960
|
})[]] | string)[]
|
|
663
961
|
|
|
664
962
|
tags?: ([]|[string]|[string, string] | []|[string]|[string, ({
|
|
665
963
|
|
|
666
964
|
match?: "strings"
|
|
667
|
-
[k: string]: unknown | undefined
|
|
668
965
|
} | {
|
|
669
966
|
|
|
670
967
|
match?: "objectKeys"
|
|
671
968
|
|
|
672
969
|
pathPattern?: string
|
|
673
|
-
[k: string]: unknown | undefined
|
|
674
970
|
} | {
|
|
675
971
|
|
|
676
972
|
match?: "objectValues"
|
|
677
973
|
|
|
678
974
|
pathPattern?: string
|
|
679
|
-
[k: string]: unknown | undefined
|
|
680
975
|
})[]] | string)[]
|
|
681
976
|
|
|
682
977
|
entryPoint?: string
|