@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) • 578 B
JavaScript
import { createZeroUnitVisitors } from './zero-unit-visitor-creator.js';
const noZeroUnitRule = {
meta: {
type: 'suggestion',
docs: {
description: 'enforce unitless zero in numeric values',
category: 'Stylistic Issues',
recommended: true,
},
fixable: 'code',
schema: [],
messages: {
noZeroUnit: 'Zero values don’t need a unit. Replace with "0".',
},
},
create(context) {
return createZeroUnitVisitors(context);
},
};
export default noZeroUnitRule;