Skip to content
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

'unicorn/no-nested-ternary' conflict with Prettier #110

Closed
yangmingshan opened this issue Oct 5, 2019 · 3 comments
Closed

'unicorn/no-nested-ternary' conflict with Prettier #110

yangmingshan opened this issue Oct 5, 2019 · 3 comments

Comments

@yangmingshan
Copy link

eslint-plugin-unicorn's no-nested-ternary rule is conflict with Prettier. It's added in v11.

@lydell
Copy link
Member

lydell commented Oct 5, 2019

Hi!

Can you show a code example where there are conflicts?

@yangmingshan
Copy link
Author

Unicorn wants

const foo = i > 100 ? 100 : (i < 50 ? 50 : i);

Prettier wants

const foo = i > 100 ? 100 : i < 50 ? 50 : i;

@lydell lydell closed this as completed in 67bd0fa Oct 5, 2019
@lydell
Copy link
Member

lydell commented Oct 5, 2019

Released in v6.4.0. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants