.prettierignore is not working
See original GitHub issueI know it has been a long awaited feature but I can’t seem to make it work.
I have a simple .prettierignore config that is consumed and applied as expected from cli, but the extension keeps formatting files in the editor.
app/modules/
app/root/
app/utils/
webpack/
tools/
config/
server/
package.json
prettier is installed globally in my setup
❯ prettier --v
1.8.2
❯ code --version
1.18.1
929bacba01ef658b873545e26034d1a8067445e9
Am I doing anything wrong? Is there any way I can log extension formatting for debug purposes?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:22 (4 by maintainers)
Top Results From Across the Web
Ignoring Code - Prettier
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >Disable prettier for a single file - javascript - Stack Overflow
To exclude files from formatting, create a .prettierignore file in the root of your project. .prettierignore uses gitignore syntax. Example: # ...
Read more >.prettierignore not working | The AI Search Engine You Control
js Code style issues found in the above file(s). Forgot to run Prettier? If I remove the rules in .prettierignore, pretty-quick is able...
Read more >Prettier: support .prettierignore : WEB-32711 - YouTrack
json). This is because the console 'prettier' tool does not lookup ignore files up the hierarchy, it only looks for them in the...
Read more >.prettierignore - mozsearch - Searchfox
CSS files have not been formatted and are not check by ./mach lint. # Disable prettier on CSS files to avoid unexpected formatting...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

2019, and .prettierignore still not working…
I mean, I’m all in for 👎’ing an unhelpful comment as the next developer, but this really doesn’t work.
prettier@1.18.2. Trying ignore an xml file in the root of my app. These don’t work:What am I doing wrong?