UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

10 lines (8 loc) 252 B
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'; }