-
Notifications
You must be signed in to change notification settings - Fork 48
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
prettier.ignorePath setting is not respected #67
Comments
I'm only using the .prettierignore file in the repository-folder to make Prettier ignore the subfolder folders of my project. The goal is that using Prettier in the repository-folder folder will only run Prettier on files in that folder, and not subfolders. If anyone else is running into this issue, a mitigation is to modify the Prettier script in your package.json file:
|
if you are still having an issue drop log of |
Content of coc-settings.json file:
or
Repository folder structure:
Content of repository-folder/.prettierignore file:
Content of repository-folder/subfolder/.prettierignore file:
Repro steps:
vim repository-folder/subfolder/index.html
Expected:
4. Prettier formats index.html
Actual:
4. Prettier does not format index.html
Issue:
The Readme.md file describes:
Setting the "prettier.ignorePath" setting to ".prettierignore" (default) or "./.prettierignore" should make Prettier use the .prettierignore file in the same directory as the file that is open.
Visual Studio Code does not have this issue when opening the subfolder folder.
The text was updated successfully, but these errors were encountered: