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) 847 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; export interface LogicalPropertiesOptions { allow?: string[]; } /** * Recursively processes a vanilla-extract style object and reports physical CSS properties. * * - Detects physical property names and suggests logical equivalents * - Detects physical directional values (e.g., text-align: left) * - Skips properties in the allow list * - Provides auto-fixes where unambiguous * - Traverses nested objects, @media, and selectors * * @param context ESLint rule context * @param node The ObjectExpression node representing the style object * @param allowSet Set of property names to skip */ export declare const processLogicalPropertiesInStyleObject: (context: Rule.RuleContext, node: TSESTree.ObjectExpression, allowSet: Set<string>) => void;