Open fisker opened 4 months ago
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.
Turns out this is hard to fix... It's not easy to know which character to align.
I don't understand how it conflicts with Prettier.
It's been enabled in Prettier codebase since the rule released. https://github.com/prettier/prettier/pull/12469 I never see any conflicts.
Quote from https://github.com/prettier/eslint-config-prettier/pull/269#issuecomment-1807580963
This doesn't mean they are conflicting.