UNPKG

@antebudimir/eslint-plugin-vanilla-extract

Version:

ESLint plugin for enforcing best practices in vanilla-extract CSS styles, including CSS property ordering and additional linting rules.

15 lines (14 loc) 781 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; /** * Enforces concentric ordering of CSS properties within a recipe function call. * * @param ruleContext The ESLint rule context for reporting and fixing issues. * @param callExpression The CallExpression node representing the recipe function call. * * 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 concentric ordering to the CSS properties. */ export declare const enforceConcentricCSSOrderInRecipe: (ruleContext: Rule.RuleContext, callExpression: TSESTree.CallExpression) => void;