first commit
This commit is contained in:
16
node_modules/stylelint/lib/utils/noFilesFoundError.mjs
generated
vendored
Normal file
16
node_modules/stylelint/lib/utils/noFilesFoundError.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
export default class NoFilesFoundError extends Error {
|
||||
/**
|
||||
* @param {string|string[]} fileList
|
||||
*/
|
||||
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.`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user