@antebudimir/eslint-plugin-vanilla-extract 1.14.0 → 1.15.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 +111 -3
- package/dist/css-rules/prefer-theme-tokens/index.d.ts +2 -0
- package/dist/css-rules/prefer-theme-tokens/index.js +2 -0
- package/dist/css-rules/prefer-theme-tokens/rule-definition.d.ts +3 -0
- package/dist/css-rules/prefer-theme-tokens/rule-definition.js +119 -0
- package/dist/css-rules/prefer-theme-tokens/theme-contract-analyzer.d.ts +60 -0
- package/dist/css-rules/prefer-theme-tokens/theme-contract-analyzer.js +322 -0
- package/dist/css-rules/prefer-theme-tokens/theme-token-processor.d.ts +26 -0
- package/dist/css-rules/prefer-theme-tokens/theme-token-processor.js +562 -0
- package/dist/css-rules/prefer-theme-tokens/theme-token-visitor-creator.d.ts +6 -0
- package/dist/css-rules/prefer-theme-tokens/theme-token-visitor-creator.js +81 -0
- package/dist/css-rules/prefer-theme-tokens/value-evaluator.d.ts +43 -0
- package/dist/css-rules/prefer-theme-tokens/value-evaluator.js +190 -0
- package/dist/demo-bad-example.css.d.ts +4 -0
- package/dist/demo-bad-example.css.js +45 -0
- package/dist/demo-good-example.css.d.ts +5 -0
- package/dist/demo-good-example.css.js +48 -0
- package/dist/demo-theme.css.d.ts +37 -0
- package/dist/demo-theme.css.js +39 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/sample-bad.css.d.ts +26 -0
- package/dist/sample-bad.css.js +85 -0
- package/dist/sample-good.css.d.ts +27 -0
- package/dist/sample-good.css.js +94 -0
- package/dist/sample-theme.css.d.ts +37 -0
- package/dist/sample-theme.css.js +38 -0
- package/dist/sample.css.d.ts +18 -18
- package/dist/sample.css.js +90 -100
- package/package.json +5 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const themeClass: string, theme: {
|
|
2
|
+
colors: {
|
|
3
|
+
primary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
4
|
+
secondary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
6
|
+
text: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
7
|
+
error: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
8
|
+
success: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
warning: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
hover: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
11
|
+
border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
12
|
+
};
|
|
13
|
+
spacing: {
|
|
14
|
+
xs: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
15
|
+
sm: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16
|
+
md: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
|
+
lg: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
xl: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
|
+
'2xl': `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
20
|
+
};
|
|
21
|
+
fontSizes: {
|
|
22
|
+
xs: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
23
|
+
sm: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
24
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
+
lg: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
|
+
xl: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
27
|
+
'2xl': `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
|
+
'3xl': `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
29
|
+
};
|
|
30
|
+
radii: {
|
|
31
|
+
none: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
32
|
+
sm: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
33
|
+
md: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
|
+
lg: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
+
full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createTheme } from '@vanilla-extract/css';
|
|
2
|
+
export const [themeClass, theme] = createTheme({
|
|
3
|
+
colors: {
|
|
4
|
+
primary: '#3b82f6',
|
|
5
|
+
secondary: '#8b5cf6',
|
|
6
|
+
background: '#ffffff',
|
|
7
|
+
text: '#1f2937',
|
|
8
|
+
error: '#ef4444',
|
|
9
|
+
success: '#10b981',
|
|
10
|
+
warning: '#f59e0b',
|
|
11
|
+
hover: '#2563eb',
|
|
12
|
+
border: '#e5e7eb',
|
|
13
|
+
},
|
|
14
|
+
spacing: {
|
|
15
|
+
xs: '0.25rem',
|
|
16
|
+
sm: '0.5rem',
|
|
17
|
+
md: '1rem',
|
|
18
|
+
lg: '1.5rem',
|
|
19
|
+
xl: '2rem',
|
|
20
|
+
'2xl': '3rem',
|
|
21
|
+
},
|
|
22
|
+
fontSizes: {
|
|
23
|
+
xs: '0.75rem',
|
|
24
|
+
sm: '0.875rem',
|
|
25
|
+
base: '1rem',
|
|
26
|
+
lg: '1.125rem',
|
|
27
|
+
xl: '1.25rem',
|
|
28
|
+
'2xl': '1.5rem',
|
|
29
|
+
'3xl': '1.875rem',
|
|
30
|
+
},
|
|
31
|
+
radii: {
|
|
32
|
+
none: '0',
|
|
33
|
+
sm: '0.125rem',
|
|
34
|
+
md: '0.375rem',
|
|
35
|
+
lg: '0.5rem',
|
|
36
|
+
full: '9999px',
|
|
37
|
+
},
|
|
38
|
+
});
|
package/dist/sample.css.d.ts
CHANGED
|
@@ -6,65 +6,65 @@ export declare const accordionContent: import("@vanilla-extract/recipes").Runtim
|
|
|
6
6
|
false: {
|
|
7
7
|
boxSizing: "inherit";
|
|
8
8
|
position: "relative";
|
|
9
|
-
|
|
9
|
+
right: "inherit";
|
|
10
10
|
display: "flex";
|
|
11
11
|
gap: "revert";
|
|
12
12
|
transform: "none";
|
|
13
13
|
margin: "11rem";
|
|
14
14
|
outline: "none";
|
|
15
15
|
border: "Background";
|
|
16
|
+
borderRight: "ActiveBorder";
|
|
17
|
+
borderLeft: "ActiveBorder";
|
|
16
18
|
borderRadius: "initial";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
borderInlineStart: "ActiveBorder";
|
|
20
|
-
borderInlineEnd: "ActiveBorder";
|
|
19
|
+
borderBottomLeftRadius: "initial";
|
|
20
|
+
borderBottomRightRadius: "initial";
|
|
21
21
|
boxShadow: "none";
|
|
22
22
|
backgroundColor: "initial";
|
|
23
23
|
cursor: "pointer";
|
|
24
|
-
|
|
24
|
+
width: "100%";
|
|
25
25
|
color: "red";
|
|
26
26
|
fontSize: "large";
|
|
27
27
|
};
|
|
28
28
|
true: {
|
|
29
29
|
boxSizing: "inherit";
|
|
30
30
|
position: "relative";
|
|
31
|
-
|
|
31
|
+
right: "inherit";
|
|
32
32
|
display: "flex";
|
|
33
33
|
gap: "revert";
|
|
34
34
|
transform: "none";
|
|
35
35
|
margin: "11rem";
|
|
36
36
|
outline: "none";
|
|
37
37
|
border: "Background";
|
|
38
|
+
borderRight: "ActiveBorder";
|
|
39
|
+
borderLeft: "ActiveBorder";
|
|
38
40
|
borderRadius: "initial";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
borderInlineStart: "ActiveBorder";
|
|
42
|
-
borderInlineEnd: "ActiveBorder";
|
|
41
|
+
borderBottomLeftRadius: "initial";
|
|
42
|
+
borderBottomRightRadius: "initial";
|
|
43
43
|
boxShadow: "none";
|
|
44
44
|
backgroundColor: "initial";
|
|
45
45
|
cursor: "pointer";
|
|
46
|
-
|
|
46
|
+
width: "100%";
|
|
47
47
|
color: "red";
|
|
48
48
|
fontSize: "large";
|
|
49
49
|
':hover': {
|
|
50
50
|
boxSizing: "inherit";
|
|
51
51
|
position: "relative";
|
|
52
|
-
|
|
52
|
+
right: "inherit";
|
|
53
53
|
display: "flex";
|
|
54
54
|
gap: "revert";
|
|
55
55
|
transform: "none";
|
|
56
56
|
margin: "11rem";
|
|
57
57
|
outline: "none";
|
|
58
58
|
border: "Background";
|
|
59
|
+
borderRight: "ActiveBorder";
|
|
60
|
+
borderLeft: "ActiveBorder";
|
|
59
61
|
borderRadius: "initial";
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
borderInlineStart: "ActiveBorder";
|
|
63
|
-
borderInlineEnd: "ActiveBorder";
|
|
62
|
+
borderBottomLeftRadius: "initial";
|
|
63
|
+
borderBottomRightRadius: "initial";
|
|
64
64
|
boxShadow: "none";
|
|
65
65
|
backgroundColor: "initial";
|
|
66
66
|
cursor: "pointer";
|
|
67
|
-
|
|
67
|
+
width: "100%";
|
|
68
68
|
color: "red";
|
|
69
69
|
fontSize: "large";
|
|
70
70
|
};
|
package/dist/sample.css.js
CHANGED
|
@@ -39,22 +39,22 @@ export const spinster = globalKeyframes('spin', {
|
|
|
39
39
|
from: {
|
|
40
40
|
boxSizing: 'inherit',
|
|
41
41
|
position: 'relative',
|
|
42
|
-
|
|
42
|
+
right: 'inherit',
|
|
43
43
|
display: 'flex',
|
|
44
44
|
gap: 'revert',
|
|
45
45
|
transform: 'none',
|
|
46
46
|
margin: '11rem',
|
|
47
47
|
outline: 'none',
|
|
48
48
|
border: 'Background',
|
|
49
|
+
borderRight: 'ActiveBorder',
|
|
50
|
+
borderLeft: 'ActiveBorder',
|
|
49
51
|
borderRadius: 'initial',
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
borderInlineStart: 'ActiveBorder',
|
|
53
|
-
borderInlineEnd: 'ActiveBorder',
|
|
52
|
+
borderBottomLeftRadius: 'initial',
|
|
53
|
+
borderBottomRightRadius: 'initial',
|
|
54
54
|
boxShadow: 'none',
|
|
55
55
|
backgroundColor: 'initial',
|
|
56
56
|
cursor: 'pointer',
|
|
57
|
-
|
|
57
|
+
width: '100%',
|
|
58
58
|
color: 'red',
|
|
59
59
|
fontSize: 'large',
|
|
60
60
|
},
|
|
@@ -63,22 +63,22 @@ export const spinster = globalKeyframes('spin', {
|
|
|
63
63
|
// Comment to test that the linter doesn't remove it
|
|
64
64
|
boxSizing: 'inherit',
|
|
65
65
|
position: 'relative',
|
|
66
|
-
|
|
66
|
+
right: 'inherit',
|
|
67
67
|
display: 'flex',
|
|
68
68
|
gap: 'revert',
|
|
69
69
|
transform: 'none',
|
|
70
70
|
margin: '11rem',
|
|
71
71
|
outline: 'none',
|
|
72
72
|
border: 'Background',
|
|
73
|
+
borderRight: 'ActiveBorder',
|
|
74
|
+
borderLeft: 'ActiveBorder',
|
|
73
75
|
borderRadius: 'initial',
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
borderInlineStart: 'ActiveBorder',
|
|
77
|
-
borderInlineEnd: 'ActiveBorder',
|
|
76
|
+
borderBottomLeftRadius: 'initial',
|
|
77
|
+
borderBottomRightRadius: 'initial',
|
|
78
78
|
boxShadow: 'none',
|
|
79
79
|
backgroundColor: 'initial',
|
|
80
80
|
cursor: 'pointer',
|
|
81
|
-
|
|
81
|
+
width: '100%',
|
|
82
82
|
color: 'red',
|
|
83
83
|
fontSize: 'large',
|
|
84
84
|
},
|
|
@@ -88,22 +88,22 @@ export const starter = keyframes({
|
|
|
88
88
|
'0%': {
|
|
89
89
|
boxSizing: 'inherit',
|
|
90
90
|
position: 'relative',
|
|
91
|
-
|
|
91
|
+
right: 'inherit',
|
|
92
92
|
display: 'flex',
|
|
93
93
|
gap: 'revert',
|
|
94
94
|
transform: 'none',
|
|
95
95
|
margin: '11rem',
|
|
96
96
|
outline: 'none',
|
|
97
97
|
border: 'Background',
|
|
98
|
+
borderRight: 'ActiveBorder',
|
|
99
|
+
borderLeft: 'ActiveBorder',
|
|
98
100
|
borderRadius: 'initial',
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
borderInlineStart: 'ActiveBorder',
|
|
102
|
-
borderInlineEnd: 'ActiveBorder',
|
|
101
|
+
borderBottomLeftRadius: 'initial',
|
|
102
|
+
borderBottomRightRadius: 'initial',
|
|
103
103
|
boxShadow: 'none',
|
|
104
104
|
backgroundColor: 'initial',
|
|
105
105
|
cursor: 'pointer',
|
|
106
|
-
|
|
106
|
+
width: '100%',
|
|
107
107
|
color: 'red',
|
|
108
108
|
fontSize: 'large',
|
|
109
109
|
},
|
|
@@ -112,22 +112,22 @@ export const starter = keyframes({
|
|
|
112
112
|
// Comment to test that the linter doesn't remove it
|
|
113
113
|
boxSizing: 'inherit',
|
|
114
114
|
position: 'relative',
|
|
115
|
-
|
|
115
|
+
right: 'inherit',
|
|
116
116
|
display: 'flex',
|
|
117
117
|
gap: 'revert',
|
|
118
118
|
transform: 'none',
|
|
119
119
|
margin: '11rem',
|
|
120
120
|
outline: 'none',
|
|
121
121
|
border: 'Background',
|
|
122
|
+
borderRight: 'ActiveBorder',
|
|
123
|
+
borderLeft: 'ActiveBorder',
|
|
122
124
|
borderRadius: 'initial',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
borderInlineStart: 'ActiveBorder',
|
|
126
|
-
borderInlineEnd: 'ActiveBorder',
|
|
125
|
+
borderBottomLeftRadius: 'initial',
|
|
126
|
+
borderBottomRightRadius: 'initial',
|
|
127
127
|
boxShadow: 'none',
|
|
128
128
|
backgroundColor: 'initial',
|
|
129
129
|
cursor: 'pointer',
|
|
130
|
-
|
|
130
|
+
width: '100%',
|
|
131
131
|
color: 'red',
|
|
132
132
|
fontSize: 'large',
|
|
133
133
|
},
|
|
@@ -136,21 +136,21 @@ globalStyle('*, ::before, ::after', {
|
|
|
136
136
|
// Comment to test that the linter doesn't remove it
|
|
137
137
|
boxSizing: 'inherit',
|
|
138
138
|
position: 'relative',
|
|
139
|
-
|
|
139
|
+
right: 'inherit',
|
|
140
140
|
display: 'flex',
|
|
141
141
|
gap: 'revert',
|
|
142
142
|
transform: 'none',
|
|
143
143
|
margin: '11rem',
|
|
144
144
|
outline: 'none',
|
|
145
145
|
border: 'Background',
|
|
146
|
+
borderRight: 'ActiveBorder',
|
|
147
|
+
borderLeft: 'ActiveBorder',
|
|
146
148
|
borderRadius: 'initial',
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
borderInlineStart: 'ActiveBorder',
|
|
150
|
-
borderInlineEnd: 'ActiveBorder',
|
|
149
|
+
borderBottomLeftRadius: 'initial',
|
|
150
|
+
borderBottomRightRadius: 'initial',
|
|
151
151
|
backgroundColor: 'initial',
|
|
152
152
|
cursor: 'pointer',
|
|
153
|
-
|
|
153
|
+
width: '100%',
|
|
154
154
|
color: 'red',
|
|
155
155
|
fontSize: 'large',
|
|
156
156
|
});
|
|
@@ -161,22 +161,22 @@ const accordionContentBase = style([
|
|
|
161
161
|
// Comment to test that the linter doesn't remove it
|
|
162
162
|
boxSizing: 'inherit',
|
|
163
163
|
position: 'relative',
|
|
164
|
-
|
|
164
|
+
right: 'inherit',
|
|
165
165
|
display: 'flex',
|
|
166
166
|
gap: 'revert',
|
|
167
167
|
transform: 'none',
|
|
168
168
|
margin: '11rem',
|
|
169
169
|
outline: 'none',
|
|
170
170
|
border: 'Background',
|
|
171
|
+
borderRight: 'ActiveBorder',
|
|
172
|
+
borderLeft: 'ActiveBorder',
|
|
171
173
|
borderRadius: 'initial',
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
borderInlineStart: 'ActiveBorder',
|
|
175
|
-
borderInlineEnd: 'ActiveBorder',
|
|
174
|
+
borderBottomLeftRadius: 'initial',
|
|
175
|
+
borderBottomRightRadius: 'initial',
|
|
176
176
|
boxShadow: 'none',
|
|
177
177
|
backgroundColor: 'initial',
|
|
178
178
|
cursor: 'pointer',
|
|
179
|
-
|
|
179
|
+
width: '100%',
|
|
180
180
|
color: 'red',
|
|
181
181
|
fontSize: 'large',
|
|
182
182
|
// special selector to test that the linter doesn't remove it
|
|
@@ -185,22 +185,22 @@ const accordionContentBase = style([
|
|
|
185
185
|
// Comment to test that the linter doesn't remove it
|
|
186
186
|
boxSizing: 'inherit',
|
|
187
187
|
position: 'relative',
|
|
188
|
-
|
|
188
|
+
right: 'inherit',
|
|
189
189
|
display: 'flex',
|
|
190
190
|
gap: 'revert',
|
|
191
191
|
transform: 'none',
|
|
192
192
|
margin: '11rem',
|
|
193
193
|
outline: 'none',
|
|
194
194
|
border: 'Background',
|
|
195
|
+
borderRight: 'ActiveBorder',
|
|
196
|
+
borderLeft: 'ActiveBorder',
|
|
195
197
|
borderRadius: 'initial',
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
borderInlineStart: 'ActiveBorder',
|
|
199
|
-
borderInlineEnd: 'ActiveBorder',
|
|
198
|
+
borderBottomLeftRadius: 'initial',
|
|
199
|
+
borderBottomRightRadius: 'initial',
|
|
200
200
|
boxShadow: 'none',
|
|
201
201
|
backgroundColor: 'initial',
|
|
202
202
|
cursor: 'pointer',
|
|
203
|
-
|
|
203
|
+
width: '100%',
|
|
204
204
|
color: 'red',
|
|
205
205
|
fontSize: 'large',
|
|
206
206
|
},
|
|
@@ -219,44 +219,44 @@ export const accordionContent = recipe({
|
|
|
219
219
|
// Comment to test that the linter doesn't remove it
|
|
220
220
|
boxSizing: 'inherit',
|
|
221
221
|
position: 'relative',
|
|
222
|
-
|
|
222
|
+
right: 'inherit',
|
|
223
223
|
display: 'flex',
|
|
224
224
|
gap: 'revert',
|
|
225
225
|
transform: 'none',
|
|
226
226
|
margin: '11rem',
|
|
227
227
|
outline: 'none',
|
|
228
228
|
border: 'Background',
|
|
229
|
+
borderRight: 'ActiveBorder',
|
|
230
|
+
borderLeft: 'ActiveBorder',
|
|
229
231
|
borderRadius: 'initial',
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
borderInlineStart: 'ActiveBorder',
|
|
233
|
-
borderInlineEnd: 'ActiveBorder',
|
|
232
|
+
borderBottomLeftRadius: 'initial',
|
|
233
|
+
borderBottomRightRadius: 'initial',
|
|
234
234
|
boxShadow: 'none',
|
|
235
235
|
backgroundColor: 'initial',
|
|
236
236
|
cursor: 'pointer',
|
|
237
|
-
|
|
237
|
+
width: '100%',
|
|
238
238
|
color: 'red',
|
|
239
239
|
fontSize: 'large',
|
|
240
240
|
},
|
|
241
241
|
true: {
|
|
242
242
|
boxSizing: 'inherit',
|
|
243
243
|
position: 'relative',
|
|
244
|
-
|
|
244
|
+
right: 'inherit',
|
|
245
245
|
display: 'flex',
|
|
246
246
|
gap: 'revert',
|
|
247
247
|
transform: 'none',
|
|
248
248
|
margin: '11rem',
|
|
249
249
|
outline: 'none',
|
|
250
250
|
border: 'Background',
|
|
251
|
+
borderRight: 'ActiveBorder',
|
|
252
|
+
borderLeft: 'ActiveBorder',
|
|
251
253
|
borderRadius: 'initial',
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
borderInlineStart: 'ActiveBorder',
|
|
255
|
-
borderInlineEnd: 'ActiveBorder',
|
|
254
|
+
borderBottomLeftRadius: 'initial',
|
|
255
|
+
borderBottomRightRadius: 'initial',
|
|
256
256
|
boxShadow: 'none',
|
|
257
257
|
backgroundColor: 'initial',
|
|
258
258
|
cursor: 'pointer',
|
|
259
|
-
|
|
259
|
+
width: '100%',
|
|
260
260
|
color: 'red',
|
|
261
261
|
fontSize: 'large',
|
|
262
262
|
// pseudo selector inside a variant
|
|
@@ -264,22 +264,22 @@ export const accordionContent = recipe({
|
|
|
264
264
|
// Comment to test that the linter doesn't remove it
|
|
265
265
|
boxSizing: 'inherit',
|
|
266
266
|
position: 'relative',
|
|
267
|
-
|
|
267
|
+
right: 'inherit',
|
|
268
268
|
display: 'flex',
|
|
269
269
|
gap: 'revert',
|
|
270
270
|
transform: 'none',
|
|
271
271
|
margin: '11rem',
|
|
272
272
|
outline: 'none',
|
|
273
273
|
border: 'Background',
|
|
274
|
+
borderRight: 'ActiveBorder',
|
|
275
|
+
borderLeft: 'ActiveBorder',
|
|
274
276
|
borderRadius: 'initial',
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
borderInlineStart: 'ActiveBorder',
|
|
278
|
-
borderInlineEnd: 'ActiveBorder',
|
|
277
|
+
borderBottomLeftRadius: 'initial',
|
|
278
|
+
borderBottomRightRadius: 'initial',
|
|
279
279
|
boxShadow: 'none',
|
|
280
280
|
backgroundColor: 'initial',
|
|
281
281
|
cursor: 'pointer',
|
|
282
|
-
|
|
282
|
+
width: '100%',
|
|
283
283
|
color: 'red',
|
|
284
284
|
fontSize: 'large',
|
|
285
285
|
},
|
|
@@ -290,21 +290,21 @@ export const accordionContent = recipe({
|
|
|
290
290
|
export const item = style({
|
|
291
291
|
boxSizing: 'inherit',
|
|
292
292
|
position: 'relative',
|
|
293
|
-
|
|
293
|
+
right: 'inherit',
|
|
294
294
|
display: 'flex',
|
|
295
295
|
gap: 'revert',
|
|
296
296
|
transform: 'none',
|
|
297
297
|
margin: '11rem',
|
|
298
298
|
outline: 'none',
|
|
299
299
|
border: 'Background',
|
|
300
|
+
borderRight: 'ActiveBorder',
|
|
301
|
+
borderLeft: 'ActiveBorder',
|
|
300
302
|
borderRadius: 'initial',
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
borderInlineStart: 'ActiveBorder',
|
|
304
|
-
borderInlineEnd: 'ActiveBorder',
|
|
303
|
+
borderBottomLeftRadius: 'initial',
|
|
304
|
+
borderBottomRightRadius: 'initial',
|
|
305
305
|
backgroundColor: 'initial',
|
|
306
306
|
cursor: 'pointer',
|
|
307
|
-
|
|
307
|
+
width: '100%',
|
|
308
308
|
color: 'red',
|
|
309
309
|
fontSize: 'large',
|
|
310
310
|
// pseudo selector inside a style
|
|
@@ -312,22 +312,22 @@ export const item = style({
|
|
|
312
312
|
// Comment to test that the linter doesn't remove it
|
|
313
313
|
boxSizing: 'inherit',
|
|
314
314
|
position: 'relative',
|
|
315
|
-
|
|
315
|
+
right: 'inherit',
|
|
316
316
|
display: 'flex',
|
|
317
317
|
gap: 'revert',
|
|
318
318
|
transform: 'none',
|
|
319
319
|
margin: '11rem',
|
|
320
320
|
outline: 'none',
|
|
321
321
|
border: 'Background',
|
|
322
|
+
borderRight: 'ActiveBorder',
|
|
323
|
+
borderLeft: 'ActiveBorder',
|
|
322
324
|
borderRadius: 'initial',
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
borderInlineStart: 'ActiveBorder',
|
|
326
|
-
borderInlineEnd: 'ActiveBorder',
|
|
325
|
+
borderBottomLeftRadius: 'initial',
|
|
326
|
+
borderBottomRightRadius: 'initial',
|
|
327
327
|
boxShadow: 'none',
|
|
328
328
|
backgroundColor: 'initial',
|
|
329
329
|
cursor: 'pointer',
|
|
330
|
-
|
|
330
|
+
width: '100%',
|
|
331
331
|
color: 'red',
|
|
332
332
|
fontSize: 'large',
|
|
333
333
|
},
|
|
@@ -337,22 +337,22 @@ export const item = style({
|
|
|
337
337
|
// Comment to test that the linter doesn't remove it
|
|
338
338
|
boxSizing: 'inherit',
|
|
339
339
|
position: 'relative',
|
|
340
|
-
|
|
340
|
+
right: 'inherit',
|
|
341
341
|
display: 'flex',
|
|
342
342
|
gap: 'revert',
|
|
343
343
|
transform: 'none',
|
|
344
344
|
margin: '11rem',
|
|
345
345
|
outline: 'none',
|
|
346
346
|
border: 'Background',
|
|
347
|
+
borderRight: 'ActiveBorder',
|
|
348
|
+
borderLeft: 'ActiveBorder',
|
|
347
349
|
borderRadius: 'initial',
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
borderInlineStart: 'ActiveBorder',
|
|
351
|
-
borderInlineEnd: 'ActiveBorder',
|
|
350
|
+
borderBottomLeftRadius: 'initial',
|
|
351
|
+
borderBottomRightRadius: 'initial',
|
|
352
352
|
boxShadow: 'none',
|
|
353
353
|
backgroundColor: 'initial',
|
|
354
354
|
cursor: 'pointer',
|
|
355
|
-
|
|
355
|
+
width: '100%',
|
|
356
356
|
color: 'red',
|
|
357
357
|
fontSize: 'large',
|
|
358
358
|
},
|
|
@@ -364,44 +364,43 @@ export const selectButtonVariants = styleVariants({
|
|
|
364
364
|
// Comment to test that the linter doesn't remove it
|
|
365
365
|
boxSizing: 'inherit',
|
|
366
366
|
position: 'relative',
|
|
367
|
-
|
|
367
|
+
right: 'inherit',
|
|
368
368
|
display: 'flex',
|
|
369
369
|
gap: 'revert',
|
|
370
370
|
transform: 'none',
|
|
371
371
|
margin: '11rem',
|
|
372
|
-
marginInlineStart: '11rem',
|
|
373
372
|
outline: 'none',
|
|
374
373
|
border: 'Background',
|
|
374
|
+
borderRight: 'ActiveBorder',
|
|
375
|
+
borderLeft: 'ActiveBorder',
|
|
375
376
|
borderRadius: 'initial',
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
borderInlineStart: 'ActiveBorder',
|
|
379
|
-
borderInlineEnd: 'ActiveBorder',
|
|
377
|
+
borderBottomLeftRadius: 'initial',
|
|
378
|
+
borderBottomRightRadius: 'initial',
|
|
380
379
|
backgroundColor: 'initial',
|
|
381
380
|
cursor: 'pointer',
|
|
382
|
-
|
|
381
|
+
width: '100%',
|
|
383
382
|
color: 'red',
|
|
384
383
|
fontSize: 'large',
|
|
385
384
|
},
|
|
386
385
|
borderless: {
|
|
387
386
|
boxSizing: 'inherit',
|
|
388
387
|
position: 'relative',
|
|
389
|
-
|
|
388
|
+
right: 'inherit',
|
|
390
389
|
display: 'flex',
|
|
391
390
|
gap: 'revert',
|
|
392
391
|
transform: 'none',
|
|
393
392
|
margin: '11rem',
|
|
394
393
|
outline: 'none',
|
|
395
394
|
border: 'Background',
|
|
395
|
+
borderRight: 'ActiveBorder',
|
|
396
|
+
borderLeft: 'ActiveBorder',
|
|
396
397
|
borderRadius: 'initial',
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
borderInlineStart: 'ActiveBorder',
|
|
400
|
-
borderInlineEnd: 'ActiveBorder',
|
|
398
|
+
borderBottomLeftRadius: 'initial',
|
|
399
|
+
borderBottomRightRadius: 'initial',
|
|
401
400
|
boxShadow: 'none',
|
|
402
401
|
backgroundColor: 'initial',
|
|
403
402
|
cursor: 'pointer',
|
|
404
|
-
|
|
403
|
+
width: '100%',
|
|
405
404
|
color: 'red',
|
|
406
405
|
fontSize: 'large',
|
|
407
406
|
},
|
|
@@ -511,15 +510,6 @@ export const selectButtonVariants = styleVariants({
|
|
|
511
510
|
// },
|
|
512
511
|
// },
|
|
513
512
|
// });
|
|
514
|
-
// export const recipe = recipe({
|
|
515
|
-
// base: {},
|
|
516
|
-
// variants: {
|
|
517
|
-
// color: {
|
|
518
|
-
// red: {},
|
|
519
|
-
// blue: {},
|
|
520
|
-
// },
|
|
521
|
-
// },
|
|
522
|
-
// });
|
|
523
513
|
// export const recipeWithNonObjectVariants = recipe({
|
|
524
514
|
// base: { color: 'blue' },
|
|
525
515
|
// variants: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antebudimir/eslint-plugin-vanilla-extract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Comprehensive ESLint plugin for vanilla-extract with CSS property ordering, style validation, and best practices enforcement. Supports alphabetical, concentric and custom CSS ordering, auto-fixing, and zero-runtime safety.",
|
|
5
5
|
"author": "Ante Budimir",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"eslint": ">=8.57.0"
|
|
49
49
|
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@babel/parser": "^7.28.5",
|
|
52
|
+
"@babel/types": "^7.28.5"
|
|
53
|
+
},
|
|
50
54
|
"devDependencies": {
|
|
51
55
|
"@eslint/eslintrc": "^3.3.0",
|
|
52
56
|
"@types/node": "^20.17.24",
|