Skip to content

Avoid conflict: no-mixed-operators / no-extra-parens #8

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

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

fredden
Copy link

@fredden fredden commented Oct 14, 2022

The documentation for 'no-mixed-operators' states:

This rule may conflict with no-extra-parens rule. If you use both this and no-extra-parens rule together, you need to use the nestedBinaryExpressions option of no-extra-parens rule.

https://eslint.org/docs/latest/rules/no-mixed-operators
https://eslint.org/docs/latest/rules/no-extra-parens

@fredden fredden requested a review from leonhelmus October 14, 2022 16:20
@leonhelmus
Copy link
Collaborator

@fredden please add a changelog :)

The documentation for 'no-mixed-operators' states:
> This rule may conflict with no-extra-parens rule. If you use both this and
> no-extra-parens rule together, you need to use the nestedBinaryExpressions
> option of no-extra-parens rule.
@leonhelmus leonhelmus merged commit cb1f784 into master Oct 17, 2022
@leonhelmus
Copy link
Collaborator

Released with tag

@fredden fredden deleted the eslint-conflict branch October 17, 2022 08:50
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