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.

11 lines (10 loc) 523 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; /** * Processes styleVariants function calls to detect and remove empty style variants. * * @param ruleContext The ESLint rule context. * @param node The styleVariants call argument (object expression). * @param reportedNodes A set of nodes that have already been reported. */ export declare function processStyleVariants(ruleContext: Rule.RuleContext, node: TSESTree.ObjectExpression, reportedNodes: Set<TSESTree.Node>): void;