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.

13 lines (12 loc) 595 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; /** * Creates ESLint rule visitors for detecting empty style blocks in vanilla-extract. * @param ruleContext The ESLint rule rule context. * @returns An object with visitor functions for the ESLint rule. */ export declare const createEmptyStyleVisitors: (ruleContext: Rule.RuleContext) => Rule.RuleListener; /** * Checks if a style object is effectively empty (contains only empty objects). */ export declare function isEffectivelyEmptyStylesObject(stylesObject: TSESTree.ObjectExpression): boolean;