@antebudimir/eslint-plugin-vanilla-extract
Version:
Comprehensive ESLint plugin for vanilla-extract with CSS property ordering, style validation, and best practices enforcement. Supports alphabetical, concentric and custom CSS ordering, auto-fixing, and zero-runtime safety.
12 lines (11 loc) • 648 B
TypeScript
import type { Rule } from 'eslint';
import type { NoUnitlessValuesOptions } from './unitless-value-processor.js';
/**
* Creates ESLint rule visitors for detecting unitless numeric values in style-related function calls.
* Uses reference tracking to automatically detect vanilla-extract functions based on their import statements.
*
* @param context The ESLint rule context.
* @param options Rule options including allowed property names.
* @returns An object with visitor functions for the ESLint rule.
*/
export declare const createUnitlessValueVisitors: (context: Rule.RuleContext, options?: NoUnitlessValuesOptions) => Rule.RuleListener;