UNPKG

@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.

14 lines (13 loc) 643 B
import type { Rule } from 'eslint'; import { TSESTree } from '@typescript-eslint/utils'; export interface NoUnitlessValuesOptions { allow?: string[]; } /** * Recursively processes a style object, reporting instances of unitless numeric values for properties that require units. * * @param ruleContext The ESLint rule context. * @param node The ObjectExpression node representing the style object to be processed. * @param options Rule options including allow list. */ export declare const processUnitlessValueInStyleObject: (ruleContext: Rule.RuleContext, node: TSESTree.ObjectExpression, options?: NoUnitlessValuesOptions) => void;