Skip to content

Prettier is formatting the entire directory even when a valid file path is given #14483

Answered by viveleroi
viveleroi asked this question in Q&A
Discussion options

You must be logged in to vote

Turned out to be because we had a prettier script in package.json that was set to prettier --write . so yarn was executing that, ignore the file arguments.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by viveleroi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant