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
Remove unicorn/template-indent
#281
Comments
https://github.com/prettier/eslint-config-prettier?tab=readme-ov-file#unicorntemplate-indent Prettier and the rule unfortunately disagree about the indentation in ternaries: condition
? null
: html`
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui
mauris.
</p>
`; There are many rules that conflict only sometimes, which means that you can use them with Prettier if you know what you’re doing. But the point of eslint-config-prettier is to help people get a conflict-free ESLint+Prettier setup (not everyone is an expert). |
Nice catch, I'll fix this on eslint-plugin-unicorn side. |
I don't understand how it conflicts with Prettier.
It's been enabled in Prettier codebase since the rule released. prettier/prettier#12469
I never see any conflicts.
Quote from #269 (comment)
This doesn't mean they are conflicting.
The text was updated successfully, but these errors were encountered: