Skip to content

no-nested-ternary conflicts with prettier #2604

@nbouvrette

Description

@nbouvrette

I started getting ESLintCircularFixesWarning in my ESLint logs after tweaking the config.

I found out it was related to unicorn/no-nested-ternary:

error Nest ternary expression should be parenthesized unicorn/no-nested-ternary

I originally thought it was a conflict with eslint/no-nested-ternary as mentionned in the documentation but while investigating it looks related to prettier:

Delete )eslint(prettier/prettier)

I could not find a way to fix this issue and found another mention os this issue in the Prettier repo which ended up disabling the Unicorn rule:

prettier/eslint-config-prettier#110

Is there a way to fix this conflict? otherwise, should there be a mention about this conflict in the documentation to save troubleshooting time?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions