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.

12 lines (11 loc) 742 B
import type { Rule } from 'eslint'; /** * Creates ESLint rule visitors for detecting and reporting 'px' units in vanilla-extract style objects. * - Tracks calls to vanilla-extract APIs (style, recipe, keyframes, globalStyle, fontFace, etc.). * This visitor only orchestrates traversal; the actual reporting and suggestion logic lives in the processor. * - Respects the `allow` option (camelCase or kebab-case) by passing it as a Set to the processor. * * @param context ESLint rule context used to read options and report diagnostics. * @returns Rule listener that inspects vanilla-extract call expressions and processes style objects. */ export declare const createNoPxUnitVisitors: (context: Rule.RuleContext) => Rule.RuleListener;