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

16 lines
449 B
Plaintext

import type { Async2Rule } from '../../visitors';
import type { UserContext } from '../../walk';
export const NoChannelTrailingSlash: Async2Rule = () => {
return {
Channel(_channel: any, { report, key, location }: UserContext) {
if ((key as string).endsWith('/') && key !== '/') {
report({
message: `\`${key}\` should not have a trailing slash.`,
location: location.key(),
});
}
},
};
};