persona-community-5/.pnpm-store/v3/files/47/f5503ac58866f5f6ee573620a6545490b56753ffd006108c32f1545da7ccf17f0404bfea1dc86e9a21396a2face45f191d5e51d9a11427c2648bf23a4a7449
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

21 lines
574 B
Plaintext

import type { Arazzo1Rule } from '../../visitors';
import type { UserContext } from '../../walk';
export const NoCriteriaXpath: Arazzo1Rule = () => {
return {
CriterionObject: {
enter(criteria, { report, location }: UserContext) {
if (!criteria.type) {
return;
}
if (criteria?.type?.type === 'xpath' || criteria?.type === 'xpath') {
report({
message: 'The `xpath` type criteria is not supported by Respect.',
location: location.child(['type']),
});
}
},
},
};
};