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.

Using this with prettier

See original GitHub issue

Using 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
platinumazurecommented, Oct 30, 2018

@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!

1reaction
btmillscommented, Nov 6, 2018

Thanks for your patience and putting the pull request together, @simlu! I just released v1.0.0-rc.1 that included your change.

Read more comments on GitHub >

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

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