feat 🥁: add prefer-theme-tokens rule
Some checks are pending
CI / Build (push) Waiting to run
CI / Lint (push) Blocked by required conditions
CI / Test (push) Waiting to run

- Enforce theme tokens over hard-coded values in vanilla-extract styles (colors, spacing, font sizes, border radius/widths, shadows, z-index, opacity, font weights, transitions)
- Provide token suggestions from configured theme contracts; optional auto-fix for unambiguous replacements
This commit is contained in:
Ante Budimir 2025-11-13 21:26:44 +02:00
parent d5eae5dfc8
commit e95a3ce9c2
16 changed files with 3197 additions and 21 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@antebudimir/eslint-plugin-vanilla-extract",
"version": "1.14.0",
"version": "1.15.0",
"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.",
"author": "Ante Budimir",
"license": "MIT",
@ -85,5 +85,9 @@
"typescript": "^5.8.2",
"typescript-eslint": "^8.26.1",
"vitest": "3.0.8"
},
"dependencies": {
"@babel/parser": "^7.28.5",
"@babel/types": "^7.28.5"
}
}