@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.
17 lines (16 loc) • 696 B
TypeScript
import { TSESTree } from '@typescript-eslint/utils';
/**
* Type guard to check if a node is an ObjectExpression.
*/
export declare const isObjectExpression: (node: TSESTree.Node) => node is TSESTree.ObjectExpression;
/**
* Checks if an object expression is empty (has no properties).
* @param node The node to check.
* @returns True if the node is an ObjectExpression with no properties.
*/
export declare const isEmptyObject: (node: TSESTree.Node) => boolean;
/**
* Checks if a CallExpression has an empty object as its first argument.
* Examples: sprinkles({}), style({}), recipe({})
*/
export declare const isCallExpressionWithEmptyObject: (node: TSESTree.CallExpression) => boolean;