first commit
This commit is contained in:
22
node_modules/stylelint/lib/utils/noFilesFoundError.cjs
generated
vendored
Normal file
22
node_modules/stylelint/lib/utils/noFilesFoundError.cjs
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
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.`;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NoFilesFoundError;
|
||||
Reference in New Issue
Block a user