persona-community-5/.pnpm-store/v3/files/73/7910d18c82a45cd692f2819e15e426a785ffaff764acfca8d5f80b7d2148530bc091d31b4d5bcc10de9641d489bf9b152bea3a2c9802d9500ddf5fc844025d
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

24 lines
1.1 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = void 0;
exports.validateDefaultProjectForFilesGlob = validateDefaultProjectForFilesGlob;
exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = `
Having many files run with the default project is known to cause performance issues and slow down linting.
See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultprojectforfiles-glob-too-wide
`;
function validateDefaultProjectForFilesGlob(options) {
if (!options.allowDefaultProjectForFiles?.length) {
return;
}
for (const glob of options.allowDefaultProjectForFiles) {
if (glob === '*') {
throw new Error(`allowDefaultProjectForFiles contains the overly wide '*'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`);
}
if (glob.includes('**')) {
throw new Error(`allowDefaultProjectForFiles glob '${glob}' contains a disallowed '**'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`);
}
}
}
//# sourceMappingURL=validateDefaultProjectForFilesGlob.js.map