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.

12 lines (11 loc) 585 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; /** * Processes a recipe object, removing empty `base` and `variants` properties, as well as empty * variant categories and values. * * @param ruleContext The ESLint rule context. * @param recipeNode The recipe object node to process. * @param reportedNodes A set of nodes that have already been reported by other processors. */ export declare function processRecipeProperties(ruleContext: Rule.RuleContext, recipeNode: TSESTree.ObjectExpression, reportedNodes: Set<TSESTree.Node>): void;