Skip to content

Issues with end of line for Vue SFC blocks with CLRF/LF #13

@alexrafael10

Description

@alexrafael10

in the processSFCBLock the code is doing

const endingTag = `</${type}>\n`

The usage of \n it's making repos not using LF show an unfixable error at the end of SFC </script> tag:

image

It will never go away since the plugin is parsing the \n added when parsing the SFC.

I'm forking in order to not mess with my repo line ends.

If this is actually an issue and maybe no one wants to spend time on it I can take some time maybe to send a PR controlling which line break char is inserted reading from endOfLine prettier option.

Cheers.

Ps: your plugin saved me so much pain introduced by prettier and vue lol

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions