@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.
44 lines (43 loc) • 1.04 kB
TypeScript
/**
* Safe evaluator for static theme values with support for:
* - rem() from polished
* - clsx() for combining values
* - Template literals with expressions
* - Basic arithmetic
*/
export declare class ValueEvaluator {
private remBase;
constructor(remBase?: number);
/**
* Evaluate a string expression to a concrete value
*/
evaluate(expression: string): string | null;
/**
* Evaluate an AST node
*/
private evaluateNode;
/**
* Evaluate a template literal
*/
private evaluateTemplateLiteral;
/**
* Evaluate a call expression (rem, clsx, etc.)
*/
private evaluateCallExpression;
/**
* Evaluate rem() function from polished
*/
private evaluateRem;
/**
* Evaluate clsx() function
*/
private evaluateClsx;
/**
* Evaluate binary expression (mainly for string concatenation)
*/
private evaluateBinaryExpression;
/**
* Set rem base for evaluation
*/
setRemBase(base: number): void;
}