UNPKG

@antebudimir/eslint-plugin-vanilla-extract

Version:

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.

20 lines (19 loc) 629 B
import { createUnknownUnitVisitors } from './unknown-unit-visitor-creator.js'; const noUnknownUnitRule = { meta: { type: 'problem', docs: { description: 'disallow invalid or unknown CSS units in vanilla-extract style objects', category: 'Possible Errors', recommended: true, }, schema: [], messages: { unknownUnit: 'The unit "{{ unit }}" in value "{{ value }}" is not recognized as a valid CSS unit.', }, }, create(context) { return createUnknownUnitVisitors(context); }, }; export default noUnknownUnitRule;