parallel-prettier icon indicating copy to clipboard operation
parallel-prettier copied to clipboard

Inherit .gitignore

Open lukeapage opened this issue 4 years ago • 3 comments
trafficstars

Prettier inherits .gitignore where as parrallel-prettier doesn't

I'm happy to make a PR but how do you want to achieve it? allow multiple ignore paths? include it if it exists?

lukeapage avatar Jan 29 '21 13:01 lukeapage

@lukeapage Prettier does not inherit .gitignore, see https://prettier.io/docs/en/ignore.html

Is this the cause for your issues: https://github.com/microsoft/parallel-prettier/issues/25?

thernstig avatar Dec 20 '23 15:12 thernstig

The docs you pointed at say this:

Prettier will also follow rules specified in the ".gitignore" file if it exists in the same directory from which it is run.

lukeapage avatar Dec 20 '23 15:12 lukeapage

@lukeapage to be fair, that page was updated one month ago: https://github.com/prettier/prettier/commit/9ebcf9b0ffdf568d884f748510fd6b730dd28010

When this issue was written Prettier did not follow .gitignore.

I think https://github.com/microsoft/parallel-prettier/issues/23 is needed first then, and maybe it will/would be done as part of this, but I also believe it is good to keep this issue open then.

thernstig avatar Dec 20 '23 15:12 thernstig