[FEATURE] alongside working directory, include "ignored-directories" option
Closed this issue · 5 comments
I would like prettier to run on every subdirectory of my repo EXCEPT one, and having to specify the majority of the repo is a pain.
Would prefer option to ignore 1 directory and run on the rest
@bnidevs this could be done via the .prettierignore, right? https://prettier.io/docs/en/ignore.html Wouldn't want to add features that are built into prettier. Feel free to reopen this, if this doesn't help you.
want to clarify: i have several react projects in one repo, alongside a build folder (that i did not add to the gitignore on purpose), so i think this would still be a helpful feature
What about the file_pattern
option? You could exclude the files there within the GitHub action? This uses the gitignore syntax, so all files would technically be prettified, but only the relevant files would be pushed.
i may have more react projects being created in this repo, but i only have one build folder i need to ignore, so it's easier for me to specify just to ignore the build folder, than to specify "commit every other folder"
Yes this is possible with the file_pattern
option. Please see the documentation right here: https://www.w3schools.com/git/git_ignore.asp You could do !folder_to_ignore
and then it would get ignored when committing.