UNPKG

@terrazzo/parser

Version:

Parser/validator for the Design Tokens Community Group (DTCG) standard.

12 lines 644 B
import type { LintRule } from '../../../types.js'; export declare const CONSISTENT_NAMING = "core/consistent-naming"; export declare const ERROR_WRONG_FORMAT = "ERROR_WRONG_FORMAT"; export interface RuleConsistentNamingOptions { /** Specify format, or custom naming validator */ format: 'kebab-case' | 'camelCase' | 'PascalCase' | 'snake_case' | 'SCREAMING_SNAKE_CASE' | ((tokenID: string) => boolean); /** Token IDs to ignore. Supports globs (`*`). */ ignore?: string[]; } declare const rule: LintRule<typeof ERROR_WRONG_FORMAT, RuleConsistentNamingOptions>; export default rule; //# sourceMappingURL=consistent-naming.d.ts.map