@antebudimir/eslint-plugin-vanilla-extract 1.0.1 → 1.1.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.
Files changed (53) hide show
  1. package/README.md +3 -2
  2. package/dist/cjs/css-rules/alphabetical-order/index.d.ts +2 -0
  3. package/dist/cjs/css-rules/alphabetical-order/index.js +7 -0
  4. package/dist/cjs/css-rules/alphabetical-order/property-order-enforcer.d.ts +14 -0
  5. package/dist/cjs/css-rules/alphabetical-order/property-order-enforcer.js +60 -0
  6. package/dist/cjs/css-rules/alphabetical-order/recipe-order-enforcer.d.ts +14 -0
  7. package/dist/cjs/css-rules/alphabetical-order/recipe-order-enforcer.js +25 -0
  8. package/dist/cjs/css-rules/alphabetical-order/rule-definition.d.ts +3 -0
  9. package/dist/cjs/css-rules/alphabetical-order/rule-definition.js +22 -0
  10. package/dist/cjs/css-rules/alphabetical-order/style-object-processor.d.ts +15 -0
  11. package/dist/cjs/css-rules/alphabetical-order/style-object-processor.js +32 -0
  12. package/dist/cjs/css-rules/concentric-order/concentric-groups.d.ts +7 -0
  13. package/dist/cjs/css-rules/concentric-order/concentric-groups.js +310 -0
  14. package/dist/cjs/css-rules/concentric-order/index.d.ts +2 -0
  15. package/dist/cjs/css-rules/concentric-order/index.js +7 -0
  16. package/dist/cjs/css-rules/concentric-order/property-order-enforcer.d.ts +16 -0
  17. package/dist/cjs/css-rules/concentric-order/property-order-enforcer.js +64 -0
  18. package/dist/cjs/css-rules/concentric-order/recipe-order-enforcer.d.ts +14 -0
  19. package/dist/cjs/css-rules/concentric-order/recipe-order-enforcer.js +25 -0
  20. package/dist/cjs/css-rules/concentric-order/rule-definition.d.ts +3 -0
  21. package/dist/cjs/css-rules/concentric-order/rule-definition.js +22 -0
  22. package/dist/cjs/css-rules/concentric-order/style-object-processor.d.ts +21 -0
  23. package/dist/cjs/css-rules/concentric-order/style-object-processor.js +63 -0
  24. package/dist/cjs/css-rules/concentric-order/types.d.ts +8 -0
  25. package/dist/cjs/css-rules/concentric-order/types.js +2 -0
  26. package/dist/cjs/css-rules/custom-order/property-order-enforcer.d.ts +17 -0
  27. package/dist/cjs/css-rules/custom-order/property-order-enforcer.js +71 -0
  28. package/dist/cjs/css-rules/custom-order/recipe-order-enforcer.d.ts +16 -0
  29. package/dist/cjs/css-rules/custom-order/recipe-order-enforcer.js +27 -0
  30. package/dist/cjs/css-rules/custom-order/rule-definition.d.ts +3 -0
  31. package/dist/cjs/css-rules/custom-order/rule-definition.js +42 -0
  32. package/dist/cjs/css-rules/custom-order/style-object-processor.d.ts +19 -0
  33. package/dist/cjs/css-rules/custom-order/style-object-processor.js +56 -0
  34. package/dist/cjs/css-rules/shared-utils/css-order-fixer.d.ts +17 -0
  35. package/dist/cjs/css-rules/shared-utils/css-order-fixer.js +43 -0
  36. package/dist/cjs/css-rules/shared-utils/css-property-priority-map.d.ts +25 -0
  37. package/dist/cjs/css-rules/shared-utils/css-property-priority-map.js +52 -0
  38. package/dist/cjs/css-rules/shared-utils/nested-selectors-processor.d.ts +25 -0
  39. package/dist/cjs/css-rules/shared-utils/nested-selectors-processor.js +40 -0
  40. package/dist/cjs/css-rules/shared-utils/order-strategy-visitor-creator.d.ts +17 -0
  41. package/dist/cjs/css-rules/shared-utils/order-strategy-visitor-creator.js +79 -0
  42. package/dist/cjs/css-rules/shared-utils/property-separator.d.ts +28 -0
  43. package/dist/cjs/css-rules/shared-utils/property-separator.js +53 -0
  44. package/dist/cjs/css-rules/shared-utils/recipe-property-processor.d.ts +16 -0
  45. package/dist/cjs/css-rules/shared-utils/recipe-property-processor.js +40 -0
  46. package/dist/cjs/css-rules/shared-utils/style-node-processor.d.ts +9 -0
  47. package/dist/cjs/css-rules/shared-utils/style-node-processor.js +25 -0
  48. package/dist/cjs/css-sample/sample.css.d.ts +161 -0
  49. package/dist/cjs/css-sample/sample.css.js +554 -0
  50. package/dist/cjs/index.d.ts +38 -0
  51. package/dist/cjs/index.js +43 -0
  52. package/dist/index.js +1 -1
  53. package/package.json +12 -15
@@ -0,0 +1,554 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.spinster = exports.starter = exports.theFont = exports.clearAllFiltersButton = exports.accordionContent = exports.trigger = exports.selectButtonVariants = exports.item = void 0;
4
+ const css_1 = require("@vanilla-extract/css");
5
+ const recipes_1 = require("@vanilla-extract/recipes");
6
+ (0, css_1.globalStyle)('*, ::before, ::after', {
7
+ // Comment to test that the linter doesn't remove it
8
+ margin: '0',
9
+ fontSize: 'large',
10
+ border: 'Background',
11
+ borderRight: 'ActiveBorder',
12
+ borderLeft: 'ActiveBorder',
13
+ borderRadius: 'initial',
14
+ borderBottomLeftRadius: 'initial',
15
+ borderBottomRightRadius: 'initial',
16
+ boxSizing: 'inherit',
17
+ position: 'relative',
18
+ right: 'inherit',
19
+ display: 'flex',
20
+ gap: 'revert',
21
+ transform: 'none',
22
+ outline: 'none',
23
+ backgroundColor: 'initial',
24
+ cursor: 'pointer',
25
+ color: 'red',
26
+ });
27
+ exports.item = (0, css_1.style)({
28
+ margin: '0',
29
+ fontSize: 'large',
30
+ border: 'Background',
31
+ borderRight: 'ActiveBorder',
32
+ borderLeft: 'ActiveBorder',
33
+ borderRadius: 'initial',
34
+ borderBottomLeftRadius: 'initial',
35
+ borderBottomRightRadius: 'initial',
36
+ boxSizing: 'inherit',
37
+ position: 'relative',
38
+ right: 'inherit',
39
+ display: 'flex',
40
+ gap: 'revert',
41
+ transform: 'none',
42
+ outline: 'none',
43
+ backgroundColor: 'initial',
44
+ cursor: 'pointer',
45
+ color: 'red',
46
+ });
47
+ const triggerBase = (0, css_1.style)({
48
+ // Comment to test that the linter doesn't remove it
49
+ margin: '0',
50
+ fontSize: 'large',
51
+ border: 'Background',
52
+ borderRight: 'ActiveBorder',
53
+ borderLeft: 'ActiveBorder',
54
+ borderRadius: 'initial',
55
+ borderBottomLeftRadius: 'initial',
56
+ borderBottomRightRadius: 'initial',
57
+ boxSizing: 'inherit',
58
+ position: 'relative',
59
+ right: 'inherit',
60
+ display: 'flex',
61
+ gap: 'revert',
62
+ transform: 'none',
63
+ outline: 'none',
64
+ backgroundColor: 'initial',
65
+ cursor: 'pointer',
66
+ color: 'red',
67
+ // Comment to test that the linter doesn't remove it
68
+ ':focus-visible': {
69
+ // Comment to test that the linter doesn't remove it
70
+ margin: '0',
71
+ fontSize: 'large',
72
+ border: 'Background',
73
+ borderRight: 'ActiveBorder',
74
+ borderLeft: 'ActiveBorder',
75
+ borderRadius: 'initial',
76
+ borderBottomLeftRadius: 'initial',
77
+ borderBottomRightRadius: 'initial',
78
+ boxShadow: 'none',
79
+ boxSizing: 'inherit',
80
+ position: 'relative',
81
+ right: 'inherit',
82
+ display: 'flex',
83
+ gap: 'revert',
84
+ transform: 'none',
85
+ outline: 'none',
86
+ backgroundColor: 'initial',
87
+ cursor: 'pointer',
88
+ color: 'red',
89
+ },
90
+ });
91
+ exports.selectButtonVariants = (0, css_1.styleVariants)({
92
+ // Comment to test that the linter doesn't remove it
93
+ bordered: {
94
+ // Comment to test that the linter doesn't remove it
95
+ margin: '0',
96
+ fontSize: 'large',
97
+ border: 'Background',
98
+ borderRight: 'ActiveBorder',
99
+ borderLeft: 'ActiveBorder',
100
+ borderRadius: 'initial',
101
+ borderBottomLeftRadius: 'initial',
102
+ borderBottomRightRadius: 'initial',
103
+ boxSizing: 'inherit',
104
+ position: 'relative',
105
+ right: 'inherit',
106
+ display: 'flex',
107
+ gap: 'revert',
108
+ transform: 'none',
109
+ outline: 'none',
110
+ backgroundColor: 'initial',
111
+ cursor: 'pointer',
112
+ color: 'red',
113
+ },
114
+ borderless: {
115
+ margin: '0',
116
+ fontSize: 'large',
117
+ border: 'Background',
118
+ borderRight: 'ActiveBorder',
119
+ borderLeft: 'ActiveBorder',
120
+ borderRadius: 'initial',
121
+ borderBottomLeftRadius: 'initial',
122
+ borderBottomRightRadius: 'initial',
123
+ boxShadow: 'none',
124
+ boxSizing: 'inherit',
125
+ position: 'relative',
126
+ right: 'inherit',
127
+ display: 'flex',
128
+ gap: 'revert',
129
+ transform: 'none',
130
+ outline: 'none',
131
+ backgroundColor: 'initial',
132
+ cursor: 'pointer',
133
+ color: 'red',
134
+ },
135
+ });
136
+ exports.trigger = (0, recipes_1.recipe)({
137
+ // Comment to test that the linter doesn't remove it
138
+ base: triggerBase,
139
+ // Comment to test that the linter doesn't remove it
140
+ variants: {
141
+ // Comment to test that the linter doesn't remove it
142
+ isOpen: {
143
+ false: {
144
+ margin: '0',
145
+ fontSize: 'large',
146
+ border: 'Background',
147
+ borderRight: 'ActiveBorder',
148
+ borderLeft: 'ActiveBorder',
149
+ borderRadius: 'initial',
150
+ borderBottomLeftRadius: 'initial',
151
+ borderBottomRightRadius: 'initial',
152
+ boxShadow: 'none',
153
+ boxSizing: 'inherit',
154
+ position: 'relative',
155
+ right: 'inherit',
156
+ display: 'flex',
157
+ gap: 'revert',
158
+ transform: 'none',
159
+ outline: 'none',
160
+ backgroundColor: 'initial',
161
+ cursor: 'pointer',
162
+ color: 'red',
163
+ // Comment to test that the linter doesn't remove it
164
+ ':hover': {
165
+ margin: '0',
166
+ fontSize: 'large',
167
+ border: 'Background',
168
+ borderRight: 'ActiveBorder',
169
+ borderLeft: 'ActiveBorder',
170
+ borderRadius: 'initial',
171
+ borderBottomLeftRadius: 'initial',
172
+ borderBottomRightRadius: 'initial',
173
+ boxShadow: 'none',
174
+ boxSizing: 'inherit',
175
+ position: 'relative',
176
+ right: 'inherit',
177
+ display: 'flex',
178
+ gap: 'revert',
179
+ transform: 'none',
180
+ outline: 'none',
181
+ backgroundColor: 'initial',
182
+ cursor: 'pointer',
183
+ color: 'red',
184
+ },
185
+ },
186
+ // Comment to test that the linter doesn't remove it
187
+ true: {
188
+ // Comment to test that the linter doesn't remove it
189
+ margin: '0',
190
+ fontSize: 'large',
191
+ border: 'Background',
192
+ borderRight: 'ActiveBorder',
193
+ borderLeft: 'ActiveBorder',
194
+ borderRadius: 'initial',
195
+ borderBottomLeftRadius: 'initial',
196
+ borderBottomRightRadius: 'initial',
197
+ boxShadow: 'none',
198
+ boxSizing: 'inherit',
199
+ position: 'relative',
200
+ right: 'inherit',
201
+ display: 'flex',
202
+ gap: 'revert',
203
+ transform: 'none',
204
+ outline: 'none',
205
+ backgroundColor: 'initial',
206
+ cursor: 'pointer',
207
+ color: 'red',
208
+ // Comment to test that the linter doesn't remove it
209
+ ':hover': {
210
+ // Comment to test that the linter doesn't remove it
211
+ margin: '0',
212
+ fontSize: 'large',
213
+ border: 'Background',
214
+ borderRight: 'ActiveBorder',
215
+ borderLeft: 'ActiveBorder',
216
+ borderRadius: 'initial',
217
+ borderBottomLeftRadius: 'initial',
218
+ borderBottomRightRadius: 'initial',
219
+ boxShadow: 'none',
220
+ boxSizing: 'inherit',
221
+ position: 'relative',
222
+ right: 'inherit',
223
+ display: 'flex',
224
+ gap: 'revert',
225
+ transform: 'none',
226
+ outline: 'none',
227
+ backgroundColor: 'initial',
228
+ cursor: 'pointer',
229
+ color: 'red',
230
+ },
231
+ },
232
+ },
233
+ },
234
+ });
235
+ const accordionContentBase = (0, css_1.style)([
236
+ // Comment to test that the linter doesn't remove it
237
+ {
238
+ // Comment to test that the linter doesn't remove it
239
+ margin: '0',
240
+ fontSize: 'large',
241
+ border: 'Background',
242
+ borderRight: 'ActiveBorder',
243
+ borderLeft: 'ActiveBorder',
244
+ borderRadius: 'initial',
245
+ borderBottomLeftRadius: 'initial',
246
+ borderBottomRightRadius: 'initial',
247
+ boxShadow: 'none',
248
+ boxSizing: 'inherit',
249
+ position: 'relative',
250
+ right: 'inherit',
251
+ display: 'flex',
252
+ gap: 'revert',
253
+ transform: 'none',
254
+ outline: 'none',
255
+ backgroundColor: 'initial',
256
+ cursor: 'pointer',
257
+ color: 'red',
258
+ // Comment to test that the linter doesn't remove it
259
+ '@supports': {
260
+ '(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none)': {
261
+ // Comment to test that the linter doesn't remove it
262
+ margin: '0',
263
+ fontSize: 'large',
264
+ border: 'Background',
265
+ borderRight: 'ActiveBorder',
266
+ borderLeft: 'ActiveBorder',
267
+ borderRadius: 'initial',
268
+ borderBottomLeftRadius: 'initial',
269
+ borderBottomRightRadius: 'initial',
270
+ boxShadow: 'none',
271
+ boxSizing: 'inherit',
272
+ position: 'relative',
273
+ right: 'inherit',
274
+ display: 'flex',
275
+ gap: 'revert',
276
+ transform: 'none',
277
+ outline: 'none',
278
+ backgroundColor: 'initial',
279
+ cursor: 'pointer',
280
+ color: 'red',
281
+ },
282
+ },
283
+ },
284
+ ]);
285
+ exports.accordionContent = (0, recipes_1.recipe)({
286
+ // Comment to test that the linter doesn't remove it
287
+ base: accordionContentBase,
288
+ // Comment to test that the linter doesn't remove it
289
+ variants: {
290
+ // Comment to test that the linter doesn't remove it
291
+ isOpen: {
292
+ // Comment to test that the linter doesn't remove it
293
+ false: {
294
+ // Comment to test that the linter doesn't remove it
295
+ margin: '0',
296
+ fontSize: 'large',
297
+ border: 'Background',
298
+ borderRight: 'ActiveBorder',
299
+ borderLeft: 'ActiveBorder',
300
+ borderRadius: 'initial',
301
+ borderBottomLeftRadius: 'initial',
302
+ borderBottomRightRadius: 'initial',
303
+ boxShadow: 'none',
304
+ boxSizing: 'inherit',
305
+ position: 'relative',
306
+ right: 'inherit',
307
+ display: 'flex',
308
+ gap: 'revert',
309
+ transform: 'none',
310
+ outline: 'none',
311
+ backgroundColor: 'initial',
312
+ cursor: 'pointer',
313
+ color: 'red',
314
+ },
315
+ true: {
316
+ margin: '0',
317
+ fontSize: 'large',
318
+ border: 'Background',
319
+ borderRight: 'ActiveBorder',
320
+ borderLeft: 'ActiveBorder',
321
+ borderRadius: 'initial',
322
+ borderBottomLeftRadius: 'initial',
323
+ borderBottomRightRadius: 'initial',
324
+ boxShadow: 'none',
325
+ boxSizing: 'inherit',
326
+ position: 'relative',
327
+ right: 'inherit',
328
+ display: 'flex',
329
+ gap: 'revert',
330
+ transform: 'none',
331
+ outline: 'none',
332
+ backgroundColor: 'initial',
333
+ cursor: 'pointer',
334
+ color: 'red',
335
+ // Comment to test that the linter doesn't remove it
336
+ ':focus-visible': {
337
+ // Comment to test that the linter doesn't remove it
338
+ margin: '0',
339
+ fontSize: 'large',
340
+ border: 'Background',
341
+ borderRight: 'ActiveBorder',
342
+ borderLeft: 'ActiveBorder',
343
+ borderRadius: 'initial',
344
+ borderBottomLeftRadius: 'initial',
345
+ borderBottomRightRadius: 'initial',
346
+ boxShadow: 'none',
347
+ boxSizing: 'inherit',
348
+ position: 'relative',
349
+ right: 'inherit',
350
+ display: 'flex',
351
+ gap: 'revert',
352
+ transform: 'none',
353
+ outline: 'none',
354
+ backgroundColor: 'initial',
355
+ cursor: 'pointer',
356
+ color: 'red',
357
+ },
358
+ },
359
+ },
360
+ },
361
+ });
362
+ exports.clearAllFiltersButton = (0, css_1.style)({
363
+ margin: '0',
364
+ fontSize: 'large',
365
+ border: 'Background',
366
+ borderRight: 'ActiveBorder',
367
+ borderLeft: 'ActiveBorder',
368
+ borderRadius: 'initial',
369
+ borderBottomLeftRadius: 'initial',
370
+ borderBottomRightRadius: 'initial',
371
+ boxShadow: 'none',
372
+ boxSizing: 'inherit',
373
+ position: 'relative',
374
+ right: 'inherit',
375
+ display: 'flex',
376
+ gap: 'revert',
377
+ transform: 'none',
378
+ outline: 'none',
379
+ backgroundColor: 'initial',
380
+ cursor: 'pointer',
381
+ color: 'red',
382
+ ':hover': {
383
+ margin: '0',
384
+ fontSize: 'large',
385
+ border: 'Background',
386
+ borderRight: 'ActiveBorder',
387
+ borderLeft: 'ActiveBorder',
388
+ borderRadius: 'initial',
389
+ borderBottomLeftRadius: 'initial',
390
+ borderBottomRightRadius: 'initial',
391
+ boxShadow: 'none',
392
+ boxSizing: 'inherit',
393
+ position: 'relative',
394
+ right: 'inherit',
395
+ display: 'flex',
396
+ gap: 'revert',
397
+ transform: 'none',
398
+ outline: 'none',
399
+ backgroundColor: 'initial',
400
+ cursor: 'pointer',
401
+ color: 'red',
402
+ },
403
+ selectors: {
404
+ // Comment to test that the linter doesn't remove it
405
+ '&[data-pressed]': {
406
+ // Comment to test that the linter doesn't remove it
407
+ margin: '0',
408
+ fontSize: 'large',
409
+ border: 'Background',
410
+ borderRight: 'ActiveBorder',
411
+ borderLeft: 'ActiveBorder',
412
+ borderRadius: 'initial',
413
+ borderBottomLeftRadius: 'initial',
414
+ borderBottomRightRadius: 'initial',
415
+ boxShadow: 'none',
416
+ boxSizing: 'inherit',
417
+ position: 'relative',
418
+ right: 'inherit',
419
+ display: 'flex',
420
+ gap: 'revert',
421
+ transform: 'none',
422
+ outline: 'none',
423
+ backgroundColor: 'initial',
424
+ cursor: 'pointer',
425
+ color: 'red',
426
+ },
427
+ },
428
+ });
429
+ exports.theFont = (0, css_1.fontFace)({
430
+ // Comment to test that the linter doesn't remove it
431
+ src: ['url("/fonts/MyFont.woff2") format("woff2")', 'url("/fonts/MyFont.woff") format("woff")'],
432
+ fontWeight: '400 700',
433
+ fontStyle: 'normal',
434
+ fontStretch: 'normal',
435
+ fontDisplay: 'swap',
436
+ unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
437
+ ascentOverride: '90%',
438
+ descentOverride: '10%',
439
+ lineGapOverride: '10%',
440
+ sizeAdjust: '90%',
441
+ fontVariant: 'normal',
442
+ fontFeatureSettings: '"liga" 1',
443
+ fontVariationSettings: '"wght" 400',
444
+ });
445
+ (0, css_1.globalFontFace)('GlobalFont', {
446
+ // Comment to test that the linter doesn't remove it
447
+ src: ['url("/fonts/MyFont.woff2") format("woff2")', 'url("/fonts/MyFont.woff") format("woff")'],
448
+ fontWeight: '400 700',
449
+ fontStyle: 'normal',
450
+ fontStretch: 'normal',
451
+ fontDisplay: 'swap',
452
+ unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
453
+ ascentOverride: '90%',
454
+ descentOverride: '10%',
455
+ lineGapOverride: '10%',
456
+ sizeAdjust: '90%',
457
+ fontVariant: 'normal',
458
+ fontFeatureSettings: '"liga" 1',
459
+ fontVariationSettings: '"wght" 400',
460
+ });
461
+ exports.starter = (0, css_1.keyframes)({
462
+ // Comment to test that the linter doesn't remove it
463
+ '0%': {
464
+ backgroundColor: 'initial',
465
+ border: 'Background',
466
+ borderBottomLeftRadius: 'initial',
467
+ borderBottomRightRadius: 'initial',
468
+ borderLeft: 'ActiveBorder',
469
+ borderRadius: 'initial',
470
+ borderRight: 'ActiveBorder',
471
+ boxShadow: 'none',
472
+ boxSizing: 'inherit',
473
+ color: 'red',
474
+ cursor: 'pointer',
475
+ display: 'flex',
476
+ fontSize: 'large',
477
+ gap: 'revert',
478
+ margin: '0',
479
+ outline: 'none',
480
+ position: 'relative',
481
+ right: 'inherit',
482
+ transform: 'none',
483
+ },
484
+ // Comment to test that the linter doesn't remove it
485
+ '100%': {
486
+ // Comment to test that the linter doesn't remove it
487
+ backgroundColor: 'initial',
488
+ border: 'Background',
489
+ borderBottomLeftRadius: 'initial',
490
+ borderBottomRightRadius: 'initial',
491
+ borderLeft: 'ActiveBorder',
492
+ borderRadius: 'initial',
493
+ borderRight: 'ActiveBorder',
494
+ boxShadow: 'none',
495
+ boxSizing: 'inherit',
496
+ color: 'red',
497
+ cursor: 'pointer',
498
+ display: 'flex',
499
+ fontSize: 'large',
500
+ gap: 'revert',
501
+ margin: '0',
502
+ outline: 'none',
503
+ position: 'relative',
504
+ right: 'inherit',
505
+ transform: 'none',
506
+ },
507
+ });
508
+ exports.spinster = (0, css_1.globalKeyframes)('spin', {
509
+ // Comment to test that the linter doesn't remove it
510
+ from: {
511
+ backgroundColor: 'initial',
512
+ border: 'Background',
513
+ borderBottomLeftRadius: 'initial',
514
+ borderBottomRightRadius: 'initial',
515
+ borderLeft: 'ActiveBorder',
516
+ borderRadius: 'initial',
517
+ borderRight: 'ActiveBorder',
518
+ boxShadow: 'none',
519
+ boxSizing: 'inherit',
520
+ color: 'red',
521
+ cursor: 'pointer',
522
+ display: 'flex',
523
+ fontSize: 'large',
524
+ gap: 'revert',
525
+ margin: '0',
526
+ outline: 'none',
527
+ position: 'relative',
528
+ right: 'inherit',
529
+ transform: 'none',
530
+ },
531
+ // Comment to test that the linter doesn't remove it
532
+ to: {
533
+ // Comment to test that the linter doesn't remove it
534
+ backgroundColor: 'initial',
535
+ border: 'Background',
536
+ borderBottomLeftRadius: 'initial',
537
+ borderBottomRightRadius: 'initial',
538
+ borderLeft: 'ActiveBorder',
539
+ borderRadius: 'initial',
540
+ borderRight: 'ActiveBorder',
541
+ boxShadow: 'none',
542
+ boxSizing: 'inherit',
543
+ color: 'red',
544
+ cursor: 'pointer',
545
+ display: 'flex',
546
+ fontSize: 'large',
547
+ gap: 'revert',
548
+ margin: '0',
549
+ outline: 'none',
550
+ position: 'relative',
551
+ right: 'inherit',
552
+ transform: 'none',
553
+ },
554
+ });
@@ -0,0 +1,38 @@
1
+ export declare const vanillaExtract: {
2
+ meta: {
3
+ name: string;
4
+ version: string;
5
+ };
6
+ rules: {
7
+ 'alphabetical-order': import("eslint").Rule.RuleModule;
8
+ 'concentric-order': import("eslint").Rule.RuleModule;
9
+ 'custom-order': import("eslint").Rule.RuleModule;
10
+ };
11
+ configs: {
12
+ recommended: {
13
+ plugins: {
14
+ 'vanilla-extract': {
15
+ rules: {
16
+ 'concentric-order': import("eslint").Rule.RuleModule;
17
+ };
18
+ };
19
+ };
20
+ rules: {
21
+ 'vanilla-extract/concentric-order': string;
22
+ };
23
+ }[];
24
+ alphabetical: {
25
+ plugins: {
26
+ 'vanilla-extract': {
27
+ rules: {
28
+ 'alphabetical-order': import("eslint").Rule.RuleModule;
29
+ };
30
+ };
31
+ };
32
+ rules: {
33
+ 'vanilla-extract/alphabetical-order': string;
34
+ };
35
+ }[];
36
+ };
37
+ };
38
+ export default vanillaExtract;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.vanillaExtract = void 0;
7
+ const index_js_1 = __importDefault(require("./css-rules/alphabetical-order/index.js"));
8
+ const index_js_2 = __importDefault(require("./css-rules/concentric-order/index.js"));
9
+ const rule_definition_js_1 = __importDefault(require("./css-rules/custom-order/rule-definition.js"));
10
+ exports.vanillaExtract = {
11
+ meta: {
12
+ name: '@antebudimir/eslint-plugin-vanilla-extract',
13
+ version: '1.0.2',
14
+ },
15
+ rules: {
16
+ 'alphabetical-order': index_js_1.default,
17
+ 'concentric-order': index_js_2.default,
18
+ 'custom-order': rule_definition_js_1.default,
19
+ },
20
+ configs: {
21
+ recommended: [
22
+ {
23
+ plugins: {
24
+ 'vanilla-extract': {
25
+ rules: { 'concentric-order': index_js_2.default },
26
+ },
27
+ },
28
+ rules: { 'vanilla-extract/concentric-order': 'warn' },
29
+ },
30
+ ],
31
+ alphabetical: [
32
+ {
33
+ plugins: {
34
+ 'vanilla-extract': {
35
+ rules: { 'alphabetical-order': index_js_1.default },
36
+ },
37
+ },
38
+ rules: { 'vanilla-extract/alphabetical-order': 'warn' },
39
+ },
40
+ ],
41
+ },
42
+ };
43
+ exports.default = exports.vanillaExtract;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import customOrderRule from './css-rules/custom-order/rule-definition.js';
4
4
  export const vanillaExtract = {
5
5
  meta: {
6
6
  name: '@antebudimir/eslint-plugin-vanilla-extract',
7
- version: '1.0.1',
7
+ version: '1.1.0',
8
8
  },
9
9
  rules: {
10
10
  'alphabetical-order': alphabeticalOrderRule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antebudimir/eslint-plugin-vanilla-extract",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "ESLint plugin for enforcing CSS ordering in vanilla-extract styles",
5
5
  "author": "Ante Budimir",
6
6
  "license": "MIT",
@@ -37,21 +37,9 @@
37
37
  "files": [
38
38
  "dist"
39
39
  ],
40
- "scripts": {
41
- "build": "tsc",
42
- "format": "prettier --write .",
43
- "lint": "eslint src --ext .ts --fix --max-warnings 0",
44
- "prepublishOnly": "pnpm run lint && pnpm run build",
45
- "publish": "pnpm publish --access public",
46
- "typecheck": "tsc --noEmit",
47
- "version:major": "pnpm version major --no-git-tag-version",
48
- "version:minor": "pnpm version minor --no-git-tag-version",
49
- "version:patch": "pnpm version patch --no-git-tag-version"
50
- },
51
40
  "engines": {
52
- "node": ">=20.18.3"
41
+ "node": ">=18.18.0"
53
42
  },
54
- "packageManager": "pnpm@10.5.0",
55
43
  "peerDependencies": {
56
44
  "eslint": ">=9.0.0"
57
45
  },
@@ -71,5 +59,14 @@
71
59
  "prettier": "^3.5.2",
72
60
  "typescript": "^5.7.3",
73
61
  "typescript-eslint": "^8.25.0"
62
+ },
63
+ "scripts": {
64
+ "build": "tsc",
65
+ "format": "prettier --write .",
66
+ "lint": "eslint src --ext .ts --fix --max-warnings 0",
67
+ "typecheck": "tsc --noEmit",
68
+ "version:major": "pnpm version major --no-git-tag-version",
69
+ "version:minor": "pnpm version minor --no-git-tag-version",
70
+ "version:patch": "pnpm version patch --no-git-tag-version"
74
71
  }
75
- }
72
+ }