question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.prettierignore is not working

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

34reactions
jerlam06commented, Sep 12, 2019

2019, and .prettierignore still not working…

10reactions
nshoescommented, Jun 13, 2019

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:

config.xml
/config.xml
./config.xml
*.xml

What am I doing wrong?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found