@salesforce-ux/eslint-plugin-slds
Version:
ESLint plugin provides custom linting rules specifically built for Salesforce Lightning Design System 2 (SLDS 2 beta)
12 lines (11 loc) • 513 B
TypeScript
import { Rule } from 'eslint';
import type { RuleConfig } from '../../../types';
/**
* Creates the shared no-hardcoded-value rule implementation for ESLint v9
* Supports color, density, and font properties including font shorthand
* Uses property-matcher.ts to ensure comprehensive coverage without missing properties
* Complex cases like box-shadow will be handled in future iterations
*/
export declare function defineNoHardcodedValueRule(config: RuleConfig & {
ruleName?: string;
}): Rule.RuleModule;