persona-community-5/.pnpm-store/v3/files/f4/9e5bf11995fc4abd5ede74dffbfea459354bed55bc26d43c683fc2eaeeca1dd487294b171586c58d18781b80da3a64a0e59eebfa7d60371470803da44541b0
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

19 lines
667 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoServerExample = void 0;
const NoServerExample = () => {
return {
Server(server, { report, location }) {
// eslint-disable-next-line no-useless-escape
const pattern = /^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;
if (server.url && pattern.test(server.url)) {
report({
message: 'Server `url` should not point to example.com or localhost.',
location: location.child(['url']),
});
}
},
};
};
exports.NoServerExample = NoServerExample;