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.

Prettier ignores "ignore" rule

See original GitHub issue

Adding <!-- prettier-ignore --> to an ejs file is ignored.

Please provide a section in the docu for how to do that correctly, if this way is the wrong way. Thank you!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
hawkrivescommented, Dec 13, 2018

@rowild glad to hear you’ve got something worked out!

2reactions
lydellcommented, Dec 13, 2018

I think you want make a file called .prettierignore with the following contents?

*.ejs

.prettierignore works like .gitignore

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 >
How to ignore specific rule(s) with prettier? - Stack Overflow
@AlexanderNied i use package.json which is the same and it only specifies how rules apply, if it set to "semi": false it will...
Read more >
Ignoring rules | Dev Cheatsheets - Michael Currin
A collection of code snippets and CLI guides for quick and easy reference while coding.
Read more >
prettier ignore folders | The search engine you control.
Ignoring Code · Prettier ... To exclude files from formatting, create a .prettierignore file in the root of your project. .prettierignore uses gitignore...
Read more >
prettier ignore rule Code Example - Code Grepper
Answers related to “prettier ignore rule” · prettier ignore exclude · how to ignore prettier · disable prettier for some specific file ·...
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