Using this with prettier
See original GitHub issueUsing this in combination with eslint-plugin-prettier.
It appears since the linebreaks are stripped, we can’t satisfy prettier?
For a code block
\`\`\`js
const a = "";
\`\`\`
I always get the error:
error Insert "⏎" prettier/prettier
Wondering if we can just fix this by adding a new-line before checking. What is the “correct” solution here?
Relevant: https://github.com/eslint/eslint-plugin-markdown/blob/master/lib/processor.js#L13
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Prettier · Opinionated Code Formatter
What is Prettier? An opinionated code formatter; Supports many languages; Integrates with most editors ... Works with the Tools You Use. JavaScript.
Read more >How to use Prettier in VS Code - Robin Wieruch
Prettier is an opinionated code formatter which ensures one unified code format. It can be used in VS Code by installing it from...
Read more >Prettier - Code formatter - Visual Studio Marketplace
This extension supports Prettier plugins when you are using a locally or globally resolved version of prettier. If you have Prettier and a ......
Read more >How To Use Prettier in VS Code - Alphr
1. Open VS Code and press the Extensions icon. 2. Input “Prettier” in the search bar and hit the magnifying glass icon. 3....
Read more >How To Format Code with Prettier in Visual Studio Code
Step 1 — Using the Format Document Command · Step 2 — Formatting Code on Save · Step 3 — Changing the Prettier...
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 FreeTop 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
Top GitHub Comments
@simlu Okay, thanks for explaining.
In that case, I’ll ask you to please remember that this project, like many open source projects, is maintained on a volunteer basis, and so things will not always move at the speed you want to. Please give the maintainer a few days to evaluate this. Thanks!
Thanks for your patience and putting the pull request together, @simlu! I just released v1.0.0-rc.1 that included your change.