eslint-plugin-better-tailwindcss 4.2.0 → 4.3.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.
- package/README.md +1 -1
- package/lib/api/defaults.d.ts +84 -14
- package/lib/api/defaults.d.ts.map +1 -1
- package/lib/api/defaults.js +25 -5
- package/lib/api/defaults.js.map +1 -1
- package/lib/api/types.d.ts +2 -2
- package/lib/api/types.d.ts.map +1 -1
- package/lib/api/types.js +1 -1
- package/lib/api/types.js.map +1 -1
- package/lib/configs/config.d.ts +1754 -194
- package/lib/configs/config.d.ts.map +1 -1
- package/lib/options/callees/cc.d.ts +28 -12
- package/lib/options/callees/cc.d.ts.map +1 -1
- package/lib/options/callees/cc.js +15 -13
- package/lib/options/callees/cc.js.map +1 -1
- package/lib/options/callees/clb.d.ts +33 -17
- package/lib/options/callees/clb.d.ts.map +1 -1
- package/lib/options/callees/clb.js +25 -22
- package/lib/options/callees/clb.js.map +1 -1
- package/lib/options/callees/clsx.d.ts +28 -12
- package/lib/options/callees/clsx.d.ts.map +1 -1
- package/lib/options/callees/clsx.js +15 -13
- package/lib/options/callees/clsx.js.map +1 -1
- package/lib/options/callees/cn.d.ts +28 -12
- package/lib/options/callees/cn.d.ts.map +1 -1
- package/lib/options/callees/cn.js +15 -13
- package/lib/options/callees/cn.js.map +1 -1
- package/lib/options/callees/cnb.d.ts +28 -12
- package/lib/options/callees/cnb.d.ts.map +1 -1
- package/lib/options/callees/cnb.js +15 -13
- package/lib/options/callees/cnb.js.map +1 -1
- package/lib/options/callees/ctl.d.ts +15 -7
- package/lib/options/callees/ctl.d.ts.map +1 -1
- package/lib/options/callees/ctl.js +8 -7
- package/lib/options/callees/ctl.js.map +1 -1
- package/lib/options/callees/cva.d.ts +38 -18
- package/lib/options/callees/cva.d.ts.map +1 -1
- package/lib/options/callees/cva.js +24 -21
- package/lib/options/callees/cva.js.map +1 -1
- package/lib/options/callees/cx.d.ts +28 -12
- package/lib/options/callees/cx.d.ts.map +1 -1
- package/lib/options/callees/cx.js +15 -13
- package/lib/options/callees/cx.js.map +1 -1
- package/lib/options/callees/dcnb.d.ts +28 -12
- package/lib/options/callees/dcnb.d.ts.map +1 -1
- package/lib/options/callees/dcnb.js +15 -13
- package/lib/options/callees/dcnb.js.map +1 -1
- package/lib/options/callees/objstr.d.ts +22 -10
- package/lib/options/callees/objstr.d.ts.map +1 -1
- package/lib/options/callees/objstr.js +15 -13
- package/lib/options/callees/objstr.js.map +1 -1
- package/lib/options/callees/tv.d.ts +62 -30
- package/lib/options/callees/tv.d.ts.map +1 -1
- package/lib/options/callees/tv.js +48 -42
- package/lib/options/callees/tv.js.map +1 -1
- package/lib/options/callees/twJoin.d.ts +15 -7
- package/lib/options/callees/twJoin.d.ts.map +1 -1
- package/lib/options/callees/twJoin.js +8 -7
- package/lib/options/callees/twJoin.js.map +1 -1
- package/lib/options/callees/twMerge.d.ts +15 -7
- package/lib/options/callees/twMerge.d.ts.map +1 -1
- package/lib/options/callees/twMerge.js +8 -7
- package/lib/options/callees/twMerge.js.map +1 -1
- package/lib/options/default-options.d.ts +78 -13
- package/lib/options/default-options.d.ts.map +1 -1
- package/lib/options/default-options.js +97 -50
- package/lib/options/default-options.js.map +1 -1
- package/lib/options/descriptions.d.ts +210 -17
- package/lib/options/descriptions.d.ts.map +1 -1
- package/lib/options/descriptions.js +2 -0
- package/lib/options/descriptions.js.map +1 -1
- package/lib/options/migrate.d.ts +16 -0
- package/lib/options/migrate.d.ts.map +1 -0
- package/lib/options/migrate.js +115 -0
- package/lib/options/migrate.js.map +1 -0
- package/lib/options/schemas/attributes.d.ts +1 -5
- package/lib/options/schemas/attributes.d.ts.map +1 -1
- package/lib/options/schemas/attributes.js +1 -2
- package/lib/options/schemas/attributes.js.map +1 -1
- package/lib/options/schemas/callees.d.ts +1 -8
- package/lib/options/schemas/callees.d.ts.map +1 -1
- package/lib/options/schemas/callees.js +1 -2
- package/lib/options/schemas/callees.js.map +1 -1
- package/lib/options/schemas/selectors.d.ts +488 -0
- package/lib/options/schemas/selectors.d.ts.map +1 -0
- package/lib/options/schemas/selectors.js +69 -0
- package/lib/options/schemas/selectors.js.map +1 -0
- package/lib/options/schemas/tags.d.ts +1 -1
- package/lib/options/schemas/tags.d.ts.map +1 -1
- package/lib/options/schemas/tags.js +1 -2
- package/lib/options/schemas/tags.js.map +1 -1
- package/lib/options/schemas/variables.d.ts +1 -3
- package/lib/options/schemas/variables.d.ts.map +1 -1
- package/lib/options/schemas/variables.js +1 -2
- package/lib/options/schemas/variables.js.map +1 -1
- package/lib/parsers/angular.d.ts +2 -2
- package/lib/parsers/angular.d.ts.map +1 -1
- package/lib/parsers/angular.js +21 -25
- package/lib/parsers/angular.js.map +1 -1
- package/lib/parsers/es.d.ts +5 -8
- package/lib/parsers/es.d.ts.map +1 -1
- package/lib/parsers/es.js +109 -47
- package/lib/parsers/es.js.map +1 -1
- package/lib/parsers/html.d.ts +2 -2
- package/lib/parsers/html.d.ts.map +1 -1
- package/lib/parsers/html.js +7 -10
- package/lib/parsers/html.js.map +1 -1
- package/lib/parsers/jsx.d.ts +2 -2
- package/lib/parsers/jsx.d.ts.map +1 -1
- package/lib/parsers/jsx.js +8 -13
- package/lib/parsers/jsx.js.map +1 -1
- package/lib/parsers/svelte.d.ts +3 -3
- package/lib/parsers/svelte.d.ts.map +1 -1
- package/lib/parsers/svelte.js +22 -25
- package/lib/parsers/svelte.js.map +1 -1
- package/lib/parsers/vue.d.ts +2 -2
- package/lib/parsers/vue.d.ts.map +1 -1
- package/lib/parsers/vue.js +14 -18
- package/lib/parsers/vue.js.map +1 -1
- package/lib/rules/enforce-canonical-classes.d.ts +146 -16
- package/lib/rules/enforce-canonical-classes.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-class-order.d.ts +146 -16
- package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-important-position.d.ts +146 -16
- package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-line-wrapping.d.ts +146 -16
- package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-variable-syntax.d.ts +148 -18
- package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
- package/lib/rules/enforce-shorthand-classes.d.ts +146 -16
- package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -1
- package/lib/rules/no-conflicting-classes.d.ts +146 -16
- package/lib/rules/no-conflicting-classes.d.ts.map +1 -1
- package/lib/rules/no-deprecated-classes.d.ts +146 -16
- package/lib/rules/no-deprecated-classes.d.ts.map +1 -1
- package/lib/rules/no-duplicate-classes.d.ts +146 -16
- package/lib/rules/no-duplicate-classes.d.ts.map +1 -1
- package/lib/rules/no-restricted-classes.d.ts +146 -16
- package/lib/rules/no-restricted-classes.d.ts.map +1 -1
- package/lib/rules/no-unknown-classes.d.ts +146 -16
- package/lib/rules/no-unknown-classes.d.ts.map +1 -1
- package/lib/rules/no-unnecessary-whitespace.d.ts +146 -16
- package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -1
- package/lib/types/rule.d.ts +39 -0
- package/lib/types/rule.d.ts.map +1 -1
- package/lib/types/rule.js +7 -0
- package/lib/types/rule.js.map +1 -1
- package/lib/utils/rule.d.ts.map +1 -1
- package/lib/utils/rule.js +42 -2
- package/lib/utils/rule.js.map +1 -1
- package/lib/utils/selectors.d.ts +3 -0
- package/lib/utils/selectors.d.ts.map +1 -0
- package/lib/utils/selectors.js +4 -0
- package/lib/utils/selectors.js.map +1 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export declare const enforceCanonicalClasses: {
|
|
|
12
12
|
tailwindConfig?: string | undefined;
|
|
13
13
|
messageStyle: "visual" | "compact" | "raw";
|
|
14
14
|
entryPoint?: string | undefined;
|
|
15
|
-
tags
|
|
15
|
+
tags?: (string | [string, ({
|
|
16
16
|
match: import("../types/rule.js").MatcherType.String;
|
|
17
17
|
} | {
|
|
18
18
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -20,8 +20,8 @@ export declare const enforceCanonicalClasses: {
|
|
|
20
20
|
} | {
|
|
21
21
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
22
22
|
pathPattern?: string | undefined;
|
|
23
|
-
})[]])[];
|
|
24
|
-
variables
|
|
23
|
+
})[]])[] | undefined;
|
|
24
|
+
variables?: (string | [string, ({
|
|
25
25
|
match: import("../types/rule.js").MatcherType.String;
|
|
26
26
|
} | {
|
|
27
27
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -29,8 +29,8 @@ export declare const enforceCanonicalClasses: {
|
|
|
29
29
|
} | {
|
|
30
30
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
31
31
|
pathPattern?: string | undefined;
|
|
32
|
-
})[]])[];
|
|
33
|
-
attributes
|
|
32
|
+
})[]])[] | undefined;
|
|
33
|
+
attributes?: (string | [string, ({
|
|
34
34
|
match: import("../types/rule.js").MatcherType.String;
|
|
35
35
|
} | {
|
|
36
36
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -38,8 +38,8 @@ export declare const enforceCanonicalClasses: {
|
|
|
38
38
|
} | {
|
|
39
39
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
40
40
|
pathPattern?: string | undefined;
|
|
41
|
-
})[]])[];
|
|
42
|
-
callees
|
|
41
|
+
})[]])[] | undefined;
|
|
42
|
+
callees?: (string | [string, ({
|
|
43
43
|
match: import("../types/rule.js").MatcherType.String;
|
|
44
44
|
} | {
|
|
45
45
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -47,7 +47,72 @@ export declare const enforceCanonicalClasses: {
|
|
|
47
47
|
} | {
|
|
48
48
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
49
49
|
pathPattern?: string | undefined;
|
|
50
|
-
})[]])[];
|
|
50
|
+
})[]])[] | undefined;
|
|
51
|
+
selectors: ({
|
|
52
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
53
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
54
|
+
match?: ({
|
|
55
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
56
|
+
} | {
|
|
57
|
+
path?: string | undefined;
|
|
58
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
59
|
+
} | {
|
|
60
|
+
path?: string | undefined;
|
|
61
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
62
|
+
})[] | undefined;
|
|
63
|
+
name: string;
|
|
64
|
+
path?: string | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
67
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
68
|
+
match?: ({
|
|
69
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
70
|
+
} | {
|
|
71
|
+
path?: string | undefined;
|
|
72
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
73
|
+
} | {
|
|
74
|
+
path?: string | undefined;
|
|
75
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
76
|
+
})[] | undefined;
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
path: string;
|
|
79
|
+
} | {
|
|
80
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
81
|
+
match?: ({
|
|
82
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
83
|
+
} | {
|
|
84
|
+
path?: string | undefined;
|
|
85
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
86
|
+
} | {
|
|
87
|
+
path?: string | undefined;
|
|
88
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
89
|
+
})[] | undefined;
|
|
90
|
+
name: string;
|
|
91
|
+
} | {
|
|
92
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
93
|
+
match?: ({
|
|
94
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
95
|
+
} | {
|
|
96
|
+
path?: string | undefined;
|
|
97
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
98
|
+
} | {
|
|
99
|
+
path?: string | undefined;
|
|
100
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
101
|
+
})[] | undefined;
|
|
102
|
+
name: string;
|
|
103
|
+
} | {
|
|
104
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
105
|
+
match?: ({
|
|
106
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
107
|
+
} | {
|
|
108
|
+
path?: string | undefined;
|
|
109
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
110
|
+
} | {
|
|
111
|
+
path?: string | undefined;
|
|
112
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
113
|
+
})[] | undefined;
|
|
114
|
+
name: string;
|
|
115
|
+
})[];
|
|
51
116
|
} & {
|
|
52
117
|
collapse: boolean;
|
|
53
118
|
logical: boolean;
|
|
@@ -64,7 +129,7 @@ export declare const enforceCanonicalClasses: {
|
|
|
64
129
|
tailwindConfig?: string | undefined;
|
|
65
130
|
messageStyle: "visual" | "compact" | "raw";
|
|
66
131
|
entryPoint?: string | undefined;
|
|
67
|
-
tags
|
|
132
|
+
tags?: (string | [string, ({
|
|
68
133
|
match: import("../types/rule.js").MatcherType.String;
|
|
69
134
|
} | {
|
|
70
135
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -72,8 +137,8 @@ export declare const enforceCanonicalClasses: {
|
|
|
72
137
|
} | {
|
|
73
138
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
74
139
|
pathPattern?: string | undefined;
|
|
75
|
-
})[]])[];
|
|
76
|
-
variables
|
|
140
|
+
})[]])[] | undefined;
|
|
141
|
+
variables?: (string | [string, ({
|
|
77
142
|
match: import("../types/rule.js").MatcherType.String;
|
|
78
143
|
} | {
|
|
79
144
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -81,8 +146,8 @@ export declare const enforceCanonicalClasses: {
|
|
|
81
146
|
} | {
|
|
82
147
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
83
148
|
pathPattern?: string | undefined;
|
|
84
|
-
})[]])[];
|
|
85
|
-
attributes
|
|
149
|
+
})[]])[] | undefined;
|
|
150
|
+
attributes?: (string | [string, ({
|
|
86
151
|
match: import("../types/rule.js").MatcherType.String;
|
|
87
152
|
} | {
|
|
88
153
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -90,8 +155,8 @@ export declare const enforceCanonicalClasses: {
|
|
|
90
155
|
} | {
|
|
91
156
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
92
157
|
pathPattern?: string | undefined;
|
|
93
|
-
})[]])[];
|
|
94
|
-
callees
|
|
158
|
+
})[]])[] | undefined;
|
|
159
|
+
callees?: (string | [string, ({
|
|
95
160
|
match: import("../types/rule.js").MatcherType.String;
|
|
96
161
|
} | {
|
|
97
162
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -99,7 +164,72 @@ export declare const enforceCanonicalClasses: {
|
|
|
99
164
|
} | {
|
|
100
165
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
101
166
|
pathPattern?: string | undefined;
|
|
102
|
-
})[]])[];
|
|
167
|
+
})[]])[] | undefined;
|
|
168
|
+
selectors: ({
|
|
169
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
170
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
171
|
+
match?: ({
|
|
172
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
173
|
+
} | {
|
|
174
|
+
path?: string | undefined;
|
|
175
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
176
|
+
} | {
|
|
177
|
+
path?: string | undefined;
|
|
178
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
179
|
+
})[] | undefined;
|
|
180
|
+
name: string;
|
|
181
|
+
path?: string | undefined;
|
|
182
|
+
} | {
|
|
183
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
184
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
185
|
+
match?: ({
|
|
186
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
187
|
+
} | {
|
|
188
|
+
path?: string | undefined;
|
|
189
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
190
|
+
} | {
|
|
191
|
+
path?: string | undefined;
|
|
192
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
193
|
+
})[] | undefined;
|
|
194
|
+
name?: string | undefined;
|
|
195
|
+
path: string;
|
|
196
|
+
} | {
|
|
197
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
198
|
+
match?: ({
|
|
199
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
200
|
+
} | {
|
|
201
|
+
path?: string | undefined;
|
|
202
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
203
|
+
} | {
|
|
204
|
+
path?: string | undefined;
|
|
205
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
206
|
+
})[] | undefined;
|
|
207
|
+
name: string;
|
|
208
|
+
} | {
|
|
209
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
210
|
+
match?: ({
|
|
211
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
212
|
+
} | {
|
|
213
|
+
path?: string | undefined;
|
|
214
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
215
|
+
} | {
|
|
216
|
+
path?: string | undefined;
|
|
217
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
218
|
+
})[] | undefined;
|
|
219
|
+
name: string;
|
|
220
|
+
} | {
|
|
221
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
222
|
+
match?: ({
|
|
223
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
224
|
+
} | {
|
|
225
|
+
path?: string | undefined;
|
|
226
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
227
|
+
} | {
|
|
228
|
+
path?: string | undefined;
|
|
229
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
230
|
+
})[] | undefined;
|
|
231
|
+
name: string;
|
|
232
|
+
})[];
|
|
103
233
|
} & {
|
|
104
234
|
collapse: boolean;
|
|
105
235
|
logical: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-canonical-classes.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-canonical-classes.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"enforce-canonical-classes.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-canonical-classes.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmClC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const enforceConsistentClassOrder: {
|
|
|
11
11
|
tailwindConfig?: string | undefined;
|
|
12
12
|
messageStyle: "visual" | "compact" | "raw";
|
|
13
13
|
entryPoint?: string | undefined;
|
|
14
|
-
tags
|
|
14
|
+
tags?: (string | [string, ({
|
|
15
15
|
match: import("../types/rule.js").MatcherType.String;
|
|
16
16
|
} | {
|
|
17
17
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -19,8 +19,8 @@ export declare const enforceConsistentClassOrder: {
|
|
|
19
19
|
} | {
|
|
20
20
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
21
21
|
pathPattern?: string | undefined;
|
|
22
|
-
})[]])[];
|
|
23
|
-
variables
|
|
22
|
+
})[]])[] | undefined;
|
|
23
|
+
variables?: (string | [string, ({
|
|
24
24
|
match: import("../types/rule.js").MatcherType.String;
|
|
25
25
|
} | {
|
|
26
26
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -28,8 +28,8 @@ export declare const enforceConsistentClassOrder: {
|
|
|
28
28
|
} | {
|
|
29
29
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
30
30
|
pathPattern?: string | undefined;
|
|
31
|
-
})[]])[];
|
|
32
|
-
attributes
|
|
31
|
+
})[]])[] | undefined;
|
|
32
|
+
attributes?: (string | [string, ({
|
|
33
33
|
match: import("../types/rule.js").MatcherType.String;
|
|
34
34
|
} | {
|
|
35
35
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -37,8 +37,8 @@ export declare const enforceConsistentClassOrder: {
|
|
|
37
37
|
} | {
|
|
38
38
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
39
39
|
pathPattern?: string | undefined;
|
|
40
|
-
})[]])[];
|
|
41
|
-
callees
|
|
40
|
+
})[]])[] | undefined;
|
|
41
|
+
callees?: (string | [string, ({
|
|
42
42
|
match: import("../types/rule.js").MatcherType.String;
|
|
43
43
|
} | {
|
|
44
44
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -46,7 +46,72 @@ export declare const enforceConsistentClassOrder: {
|
|
|
46
46
|
} | {
|
|
47
47
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
48
48
|
pathPattern?: string | undefined;
|
|
49
|
-
})[]])[];
|
|
49
|
+
})[]])[] | undefined;
|
|
50
|
+
selectors: ({
|
|
51
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
52
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
53
|
+
match?: ({
|
|
54
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
55
|
+
} | {
|
|
56
|
+
path?: string | undefined;
|
|
57
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
58
|
+
} | {
|
|
59
|
+
path?: string | undefined;
|
|
60
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
61
|
+
})[] | undefined;
|
|
62
|
+
name: string;
|
|
63
|
+
path?: string | undefined;
|
|
64
|
+
} | {
|
|
65
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
66
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
67
|
+
match?: ({
|
|
68
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
69
|
+
} | {
|
|
70
|
+
path?: string | undefined;
|
|
71
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
72
|
+
} | {
|
|
73
|
+
path?: string | undefined;
|
|
74
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
75
|
+
})[] | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
path: string;
|
|
78
|
+
} | {
|
|
79
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
80
|
+
match?: ({
|
|
81
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
82
|
+
} | {
|
|
83
|
+
path?: string | undefined;
|
|
84
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
85
|
+
} | {
|
|
86
|
+
path?: string | undefined;
|
|
87
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
88
|
+
})[] | undefined;
|
|
89
|
+
name: string;
|
|
90
|
+
} | {
|
|
91
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
92
|
+
match?: ({
|
|
93
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
94
|
+
} | {
|
|
95
|
+
path?: string | undefined;
|
|
96
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
97
|
+
} | {
|
|
98
|
+
path?: string | undefined;
|
|
99
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
100
|
+
})[] | undefined;
|
|
101
|
+
name: string;
|
|
102
|
+
} | {
|
|
103
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
104
|
+
match?: ({
|
|
105
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
106
|
+
} | {
|
|
107
|
+
path?: string | undefined;
|
|
108
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
109
|
+
} | {
|
|
110
|
+
path?: string | undefined;
|
|
111
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
112
|
+
})[] | undefined;
|
|
113
|
+
name: string;
|
|
114
|
+
})[];
|
|
50
115
|
} & {
|
|
51
116
|
componentClassOrder: "asc" | "desc" | "preserve";
|
|
52
117
|
componentClassPosition: "start" | "end";
|
|
@@ -66,7 +131,7 @@ export declare const enforceConsistentClassOrder: {
|
|
|
66
131
|
tailwindConfig?: string | undefined;
|
|
67
132
|
messageStyle: "visual" | "compact" | "raw";
|
|
68
133
|
entryPoint?: string | undefined;
|
|
69
|
-
tags
|
|
134
|
+
tags?: (string | [string, ({
|
|
70
135
|
match: import("../types/rule.js").MatcherType.String;
|
|
71
136
|
} | {
|
|
72
137
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -74,8 +139,8 @@ export declare const enforceConsistentClassOrder: {
|
|
|
74
139
|
} | {
|
|
75
140
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
76
141
|
pathPattern?: string | undefined;
|
|
77
|
-
})[]])[];
|
|
78
|
-
variables
|
|
142
|
+
})[]])[] | undefined;
|
|
143
|
+
variables?: (string | [string, ({
|
|
79
144
|
match: import("../types/rule.js").MatcherType.String;
|
|
80
145
|
} | {
|
|
81
146
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -83,8 +148,8 @@ export declare const enforceConsistentClassOrder: {
|
|
|
83
148
|
} | {
|
|
84
149
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
85
150
|
pathPattern?: string | undefined;
|
|
86
|
-
})[]])[];
|
|
87
|
-
attributes
|
|
151
|
+
})[]])[] | undefined;
|
|
152
|
+
attributes?: (string | [string, ({
|
|
88
153
|
match: import("../types/rule.js").MatcherType.String;
|
|
89
154
|
} | {
|
|
90
155
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -92,8 +157,8 @@ export declare const enforceConsistentClassOrder: {
|
|
|
92
157
|
} | {
|
|
93
158
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
94
159
|
pathPattern?: string | undefined;
|
|
95
|
-
})[]])[];
|
|
96
|
-
callees
|
|
160
|
+
})[]])[] | undefined;
|
|
161
|
+
callees?: (string | [string, ({
|
|
97
162
|
match: import("../types/rule.js").MatcherType.String;
|
|
98
163
|
} | {
|
|
99
164
|
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
@@ -101,7 +166,72 @@ export declare const enforceConsistentClassOrder: {
|
|
|
101
166
|
} | {
|
|
102
167
|
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
103
168
|
pathPattern?: string | undefined;
|
|
104
|
-
})[]])[];
|
|
169
|
+
})[]])[] | undefined;
|
|
170
|
+
selectors: ({
|
|
171
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
172
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
173
|
+
match?: ({
|
|
174
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
175
|
+
} | {
|
|
176
|
+
path?: string | undefined;
|
|
177
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
178
|
+
} | {
|
|
179
|
+
path?: string | undefined;
|
|
180
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
181
|
+
})[] | undefined;
|
|
182
|
+
name: string;
|
|
183
|
+
path?: string | undefined;
|
|
184
|
+
} | {
|
|
185
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
186
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
187
|
+
match?: ({
|
|
188
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
189
|
+
} | {
|
|
190
|
+
path?: string | undefined;
|
|
191
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
192
|
+
} | {
|
|
193
|
+
path?: string | undefined;
|
|
194
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
195
|
+
})[] | undefined;
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
path: string;
|
|
198
|
+
} | {
|
|
199
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
200
|
+
match?: ({
|
|
201
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
202
|
+
} | {
|
|
203
|
+
path?: string | undefined;
|
|
204
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
205
|
+
} | {
|
|
206
|
+
path?: string | undefined;
|
|
207
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
208
|
+
})[] | undefined;
|
|
209
|
+
name: string;
|
|
210
|
+
} | {
|
|
211
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
212
|
+
match?: ({
|
|
213
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
214
|
+
} | {
|
|
215
|
+
path?: string | undefined;
|
|
216
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
217
|
+
} | {
|
|
218
|
+
path?: string | undefined;
|
|
219
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
220
|
+
})[] | undefined;
|
|
221
|
+
name: string;
|
|
222
|
+
} | {
|
|
223
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
224
|
+
match?: ({
|
|
225
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
226
|
+
} | {
|
|
227
|
+
path?: string | undefined;
|
|
228
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
229
|
+
} | {
|
|
230
|
+
path?: string | undefined;
|
|
231
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
232
|
+
})[] | undefined;
|
|
233
|
+
name: string;
|
|
234
|
+
})[];
|
|
105
235
|
} & {
|
|
106
236
|
componentClassOrder: "asc" | "desc" | "preserve";
|
|
107
237
|
componentClassPosition: "start" | "end";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-consistent-class-order.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-class-order.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"enforce-consistent-class-order.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-class-order.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ItC,CAAC"}
|