UNPKG

@terrazzo/parser

Version:

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

22 lines 834 B
import type { LintRule } from '../../../types.js'; export declare const VALID_DURATION = "core/valid-duration"; declare const ERROR_FORMAT = "ERROR_FORMAT"; declare const ERROR_INVALID_PROP = "ERROR_INVALID_PROP"; declare const ERROR_LEGACY = "ERROR_LEGACY"; declare const ERROR_UNIT = "ERROR_UNIT"; declare const ERROR_VALUE = "ERROR_VALUE"; export interface RuleValidDimension { /** * Allow the use of unknown "unit" values * @default false */ legacyFormat?: boolean; /** * Allow the use of unknown "unit" values * @default false */ unknownUnits?: boolean; } declare const rule: LintRule<typeof ERROR_FORMAT | typeof ERROR_LEGACY | typeof ERROR_UNIT | typeof ERROR_VALUE | typeof ERROR_INVALID_PROP, RuleValidDimension>; export default rule; //# sourceMappingURL=valid-duration.d.ts.map