A utility package that provides commonly used ignore patterns for Prettier to skip files and folders like pnpm-lock.yaml, dist, coverage, etc. Version 0.5.0 requires Node.js >=20.19.0 and is actively maintained. It packages community-agreed ignore rules that Prettier does not ignore by default, saving users from manually listing them. It is distributed via npm and integrates with Prettier's --ignore-path option.
npm install prettier-ignoreVerified import paths — ran on the pinned version, not inferred.
Shows how to install and use prettier-ignore with Prettier's --ignore-path option.
Upgrade Node.js to >=20.19.0 or stick to version <0.5.0.
Do not try to import or require the module programmatically; use the file path directly.
Use the full path: ./node_modules/prettier-ignore/prettierignore.
Use require.resolve('prettier-ignore') to get the path or use the file directly.Use --ignore-path (with hyphen).
No dependency data recorded yet.