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

Disable no-nested-ternary when Prettier is used #402

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

pvdlg
Copy link
Contributor

@pvdlg pvdlg commented Sep 26, 2019

This disable the rule unicorn/no-nested-ternary when Prettier formatting is enabled.

The reason is that currently Prettier doesn't allow to wrap nested ternary in parenthesis. See prettier/prettier#4157.

This rule can be re-enabled if prettier/prettier#4157 is fixed to allow those parenthesis.

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 this pull request may close these issues.

2 participants