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.

15 lines (14 loc) 727 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; /** * Enforces alphabetical ordering of CSS properties within a recipe function call. * * @param node The CallExpression node representing the recipe function call. * @param context The ESLint rule context. * * This function does the following: * 1. Checks if the first argument of the recipe function is an ObjectExpression. * 2. If valid, processes the recipe object's properties. * 3. For each relevant property (e.g., 'base', 'variants'), it applies alphabetical ordering to the CSS properties. */ export declare const enforceAlphabeticalCSSOrderInRecipe: (node: TSESTree.CallExpression, context: Rule.RuleContext) => void;