@terrazzo/parser
Version:
Parser/validator for the Design Tokens Community Group (DTCG) standard.
22 lines • 839 B
TypeScript
import type { LintRule } from '../../../types.js';
export declare const VALID_DIMENSION = "core/valid-dimension";
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;
/**
* Only allow the following units.
* @default ["px", "rem"]
*/
allowedUnits?: string[];
}
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-dimension.d.ts.map