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.

45 lines (44 loc) 1.44 kB
/** * Mapping of physical CSS properties to their logical equivalents. * Includes margin, padding, border, inset, and positioning properties. */ export interface PropertyMapping { logical: string; description?: string; } /** * Direct physical → logical property mappings */ export declare const PHYSICAL_TO_LOGICAL: Record<string, PropertyMapping>; /** * Text-align directional values that should be replaced */ export declare const TEXT_ALIGN_PHYSICAL_VALUES: Record<string, string>; /** * Float directional values that should be replaced */ export declare const FLOAT_PHYSICAL_VALUES: Record<string, string>; /** * Clear directional values that should be replaced */ export declare const CLEAR_PHYSICAL_VALUES: Record<string, string>; /** * Properties where the value (not the property name) needs to be checked for physical directions */ export declare const VALUE_BASED_PHYSICAL_PROPERTIES: Set<string>; /** * Check if a property name is a physical property that should be converted */ export declare function isPhysicalProperty(propertyName: string): boolean; /** * Get the logical equivalent of a physical property */ export declare function getLogicalProperty(propertyName: string): string | null; /** * Convert camelCase to kebab-case */ export declare function toKebabCase(name: string): string; /** * Convert kebab-case to camelCase */ export declare function toCamelCase(name: string): string;