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.

21 lines (20 loc) 642 B
import { createTrailingZeroVisitors } from './trailing-zero-visitor-creator.js'; const noTrailingZeroRule = { meta: { type: 'suggestion', docs: { description: 'disallow trailing zeros in numeric CSS values', category: 'Stylistic Issues', recommended: true, }, fixable: 'code', schema: [], messages: { trailingZero: 'Numeric value "{{ value }}" has unnecessary trailing zeros. Use "{{ fixed }}" instead.', }, }, create(context) { return createTrailingZeroVisitors(context); }, }; export default noTrailingZeroRule;