persona-community-5/.pnpm-store/v3/files/4a/10ca191ff8c491baac7f2ac25816f6a10c41f21494221ba9f299129c84300abcdc754701ec8024eee7695135874eb866da15a92d09770adf511c0fb343fd32
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

25 lines
823 B
Plaintext

import { ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT } from '../../typings/arazzo';
import { pluralize } from '../../utils';
import type { Arazzo1Rule } from '../../visitors';
import type { UserContext } from '../../walk';
export const RespectSupportedVersions: Arazzo1Rule = () => {
const supportedVersions = ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT.join(', ');
return {
Root: {
enter(root, { report, location }: UserContext) {
if (!ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT.includes(root.arazzo)) {
report({
message: `Only ${supportedVersions} Arazzo ${pluralize(
'version is',
ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT.length
)} fully supported by Respect.`,
location: location.child('arazzo'),
});
}
},
},
};
};