prettier icon indicating copy to clipboard operation
prettier copied to clipboard

Support read nested gitignore files

Open splincode opened this issue 10 months ago • 1 comments

I try to use that instruction:

prettier !package-lock.json . --ignore-path **/.gitignore --check

But my nested .gitignore files were ignored

splincode avatar Feb 11 '25 06:02 splincode

Maintainers do not seem inclined to add support for nested ignore-files. See https://github.com/prettier/prettier/issues/4081 But there is a workaround: https://www.npmjs.com/package/prettierignore-monorepo

Leksat avatar Nov 29 '25 07:11 Leksat