@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.
15 lines (14 loc) • 730 B
TypeScript
import type { Rule } from 'eslint';
/**
* Creates ESLint rule visitors for detecting and reporting physical CSS properties
* in vanilla-extract style objects.
*
* - Tracks calls to vanilla-extract APIs (style, recipe, keyframes, globalStyle, fontFace, etc.)
* - Detects physical property names and directional values
* - Respects the `allow` option for allowlisting properties
* - Provides auto-fixes for unambiguous conversions
*
* @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 createLogicalPropertiesVisitors: (context: Rule.RuleContext) => Rule.RuleListener;