Skip to content

Instantly share code, notes, and snippets.

@devinrhode2
Last active November 24, 2021 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devinrhode2/9147de4d35ad7cd08d9790ac0e130866 to your computer and use it in GitHub Desktop.
Save devinrhode2/9147de4d35ad7cd08d9790ac0e130866 to your computer and use it in GitHub Desktop.
Prettier not recursing into files/folders when given "."

Prettier not recursing into files/folders when given "."

I had a really odd prettier issue.. Using prettier v2.4.1, node 16.13.0, yarn 1.22.15, M1 mac, zsh/iTerm2, with ARM version of zsh..

For some reason prettier was not recursing into all files/folders. I had to change it to "**/*" instead of .

I don't know if reinstalling node_modules would have fixed the issue

But it seems like the issue was resolved by adding node_modules into my .prettierignore file.. which is extremely odd..

@devinrhode2
Copy link
Author

devinrhode2 commented Nov 24, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment