-
-
Notifications
You must be signed in to change notification settings - Fork 681
Odd formatting with router-link and named routes #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
VS Code provides the following message from ESLint:
aka - adding CR/LFs (or ⏎·Equiv) |
Yup, same problem here as @Akash-Preet EDIT: Found a solution that worked for me here in this comment. Yes, it was as simple as reinstalling the config of prettier. Alternative solution if you don't like this wrapping behaviour on here. EDIT2: To solve the annoying problem that @Akash-Preet describe and I too had, what I ultimitaly had to do was to remove this line If you keep having the problem of "Delete CR" lines, then it could be a problem with the prettier config for End Of Line and the config of your VScode. More info and fix here. |
I had the same issue. Turns out the root cause was just the line getting longer than Prettier's default It can be easily fixed by setting the option to a higher value, e.g. 120 (my IDE's line width). One way is to create a
|
That's the result of using Prettier, which likes to format HTML that way. Since this has nothing to do with eslint-plugin-vue, I'll close this issue. |
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
I expected the formatting of the router-link tag not to be changed
What actually happened?
I can also confirm by saving the file in a dumb editor like nano with expected formatting and then running npm run lint the file is updated to the poor formatting. This behavior only happens when using a "named" router-link tag.
The text was updated successfully, but these errors were encountered: