Skip to content

Using this with prettier #101

@simlu

Description

@simlu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions