@accordproject/concerto-linter-default-ruleset
Version:
Default ruleset for the Accord Project Concerto Linter
23 lines (22 loc) • 847 B
TypeScript
/**
* Rule: No Reserved Keywords with Declarations, Properties, and Decorators
*
* This rule enforces that names used for declarations, properties, and decorators
* in Concerto models do not use reserved keywords. Reserved keywords are language-specific
* terms that may cause conflicts or unexpected behavior if used as identifiers.
* If a name matches any of the reserved keywords (case-insensitive), the linter will
* report an error to prevent its usage.
*/
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: {
notMatch: string;
};
};
};
export default _default;