persona-community-5/.pnpm-store/v3/files/6a/263a9b69502d60df44e9590c36f95da46c3864c5cf55080fccc0b5f5c3a7a6cff744b45b9b6681cdafacad42d3ac82c3aa168f603e43bb8faf0d59b10bc393
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
703 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PathsKebabCase = void 0;
const PathsKebabCase = () => {
return {
PathItem(_path, { report, key }) {
const segments = key
.substr(1)
.split('/')
.filter((s) => s !== ''); // filter out empty segments
if (!segments.every((segment) => /^{.+}$/.test(segment) || /^[a-z0-9-.]+$/.test(segment))) {
report({
message: `\`${key}\` does not use kebab-case.`,
location: { reportOnKey: true },
});
}
},
};
};
exports.PathsKebabCase = PathsKebabCase;