I'm using eslint and prettier on my project. I'm getting an error => [eslint] Expected 1 line break before and after opening tag (<div>), but no line breaks found. eslint_d(vue/singleline-html-element-content-newline)
(vue/singleline-html-element-content-newline) with the code below:
Apparently the eslint wants to code to be like this:
<div mx-auto mt-5 text-center text-sm opacity-50>
test
</div>
But prettier keeps reformatting it in to a single line that i showed you above and when it does that eslint keeps given me the same error. I've tried lots of different configurations with different paramaters in .prettierrc file but it doesn't seems to be working. Here are my configurations:
Describe the bug
I'm using eslint and prettier on my project. I'm getting an error => [eslint] Expected 1 line break before and after opening tag (
<div>
), but no line breaks found. eslint_d(vue/singleline-html-element-content-newline) (vue/singleline-html-element-content-newline) with the code below:<div mx-auto mt-5 text-center text-sm opacity-50>test</div>
Apparently the eslint wants to code to be like this:
But prettier keeps reformatting it in to a single line that i showed you above and when it does that eslint keeps given me the same error. I've tried lots of different configurations with different paramaters in .prettierrc file but it doesn't seems to be working. Here are my configurations:
I want Prettier to handle the format warnings that Eslint is giving me. What should I do for it?
Reproduction
Conflict between eslint and prettier
System Info
Used Package Manager
npm
Validations