@salesforce-ux/eslint-plugin-slds
Version:
ESLint plugin provides custom linting rules specifically built for Salesforce Lightning Design System 2 (SLDS 2 beta)
24 lines (23 loc) • 1.34 kB
TypeScript
/**
* Check if any of the hook properties match the provided cssProperty using wildcard matching.
* @param hookProperties - Array of property patterns (can contain wildcards like `*`)
* @param cssProperty - The CSS property to be checked
* @returns true if a match is found, otherwise false
*/
export declare function matchesCssProperty(hookProperties: string[], cssProperty: string): boolean;
export declare function isBorderColorProperty(cssProperty: string): boolean;
export declare function isBorderWidthProperty(cssProperty: string): boolean;
export declare function isMarginProperty(cssProperty: string): boolean;
export declare function isPaddingProperty(cssProperty: string): boolean;
export declare function isBorderRadius(cssProperty: string): boolean;
export declare function isDimensionProperty(cssProperty: string): boolean;
export declare function isInsetProperty(cssProperty: string): boolean;
export declare const fontProperties: string[];
export declare const colorProperties: string[];
export declare const densificationProperties: string[];
/**
* Convert property patterns to CSS AST selector patterns
* Handles wildcards (*) and creates proper ESLint CSS selector syntax
*/
export declare function toSelector(properties: string[]): string;
export declare function resolvePropertyToMatch(cssProperty: string): string;