@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.
10 lines (9 loc) • 422 B
TypeScript
import { TSESTree } from '@typescript-eslint/utils';
/**
* Gets the property name regardless of whether it's an identifier or a literal.
*/
export declare function getStyleKeyName(key: TSESTree.Expression | TSESTree.PrivateIdentifier): string | null;
/**
* Checks if all properties in a style object are empty objects.
*/
export declare const areAllChildrenEmpty: (stylesObject: TSESTree.ObjectExpression) => boolean;