first commit
This commit is contained in:
9
node_modules/stylelint/lib/utils/isPathNotFoundError.mjs
generated
vendored
Normal file
9
node_modules/stylelint/lib/utils/isPathNotFoundError.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { types } from 'node:util';
|
||||
|
||||
/**
|
||||
* @param {unknown} error
|
||||
* @returns {error is NodeJS.ErrnoException}
|
||||
*/
|
||||
export default function isPathNotFoundError(error) {
|
||||
return types.isNativeError(error) && 'code' in error && error.code === 'ENOENT';
|
||||
}
|
||||
Reference in New Issue
Block a user