@accordproject/concerto-linter-default-ruleset
Version:
Default ruleset for the Accord Project Concerto Linter
21 lines (20 loc) • 741 B
TypeScript
/**
* Rule: Enum Constants Must Use UPPER_SNAKE_CASE
* ----------------------------------------------
* Enforces that all enum constant names follow the UPPER_SNAKE_CASE convention.
* This rule checks each enum property name and reports an error if it does not match the required pattern.
* Ensures consistency and readability in enum naming across the model.
*/
declare const _default: {
description: string;
given: string;
message: string;
severity: number;
then: {
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<string, import("@stoplight/spectral-functions").PatternOptions>;
functionOptions: {
match: string;
};
};
};
export default _default;