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) 574 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; /** * Checks if a style object is effectively empty (contains only empty objects). */ export declare const isEffectivelyEmptyStylesObject: (stylesObject: TSESTree.ObjectExpression) => boolean; /** * Creates ESLint rule visitors for detecting empty style blocks using reference tracking. * This automatically detects vanilla-extract functions based on their import statements. */ export declare const createEmptyStyleVisitors: (ruleContext: Rule.RuleContext) => Rule.RuleListener;