-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have Format On Save recognize .prettierignore
within workspace/project subfolders
#3465
Comments
To add to the issue, this also affects |
I can also verify this behaviour with |
After some further tests it seems |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Bump, although this issue should be renamed to be ignore file specific |
.prettierignore
within workspace/project subfolders
I just updated this issue's title and the copy of my original post to reflect the scope only being |
Right now, with the
prettier-vscode
extension installed, the extension will recognize a.prettierignore
file that is on the root of the vscode workspace/project, but it will not recognize any.prettierignore
files that are within folders in that vscode workspace.It would be helpful to have the
prettier-vscode
extension recognize and honor the.prettierignore
files that are within folders in a vscode workspace. This is especially helpful in a monorepo context, where different folders of the monorepo can have differentpackage.json
s and different.prettierignore
files.If, for example, you have a folder structure in a workspace like so:
And the contents of
codebase-1/.prettierignore
are:With the vscode workspace opened on code structure above, opening
codebase-1/src/first-file-to-ignore.ts
and saving the file (with Format On Save enabled),prettier-vscode
will format the file and disregardcodebase-1/.prettierignore
.Edits:
.prettierignore
files and not.prettierrc
files in subfolders. Updated the copy above to reflect that.The text was updated successfully, but these errors were encountered: