stylelint
Version:
A mighty, modern CSS linter.
18 lines (12 loc) • 352 B
JavaScript
;
class NoFilesFoundError extends Error {
constructor(fileList) {
super();
if (typeof fileList === 'string') {
fileList = [fileList];
}
const pattern = fileList.filter((i) => !i.startsWith('!')).join(', ');
this.message = `No files matching the pattern "${pattern}" were found.`;
}
}
module.exports = NoFilesFoundError;