Skip to content

ismail-syed/prettier-ignore-nested-paths-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install deps:

yarn install

Run prettier:

$ node_modules/.bin/prettier  './**/*.json' --list-different

index.json
nested folder/another/dont-format.json
nested folder/should-format.json

Root level .prettierignore is respected. Why not the nested, .some-folder/nested/.prettierignore?

Expected:

  • some-folder/nested/dont-format.json not to be listed

Actual:

  • some-folder/nested/dont-format.json is listed even though it's included a nested .prettierignore.

About

nested .prettierignore aren't respected

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published