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

New rule: Disallow mixes of different bitwise operators #801

Open
feross opened this issue Feb 28, 2017 · 2 comments
Open

New rule: Disallow mixes of different bitwise operators #801

feross opened this issue Feb 28, 2017 · 2 comments

Comments

@feross
Copy link
Member

feross commented Feb 28, 2017

Proposal to make the no-mixed-operators stricter so it includes bitwise operators.

This was suggested by @mafintosh in this comment: #566 (comment)

@feross feross added this to the standard v10 milestone Feb 28, 2017
@feross feross modified the milestones: standard v10, standard v11 Mar 2, 2017
@mafintosh
Copy link
Contributor

tbc, my issue is when mixing bitwise ops with +, *, === etc. mixing them with other bitwise ops is pretty straightforward

@feross
Copy link
Member Author

feross commented Mar 6, 2017

@mafintosh Yep, got it. The rule won't warn about operators that are equal precedence. Parens are only needed when mixing operators of different precedences.

@feross feross modified the milestones: standard v12, standard v13 Aug 28, 2018
@feross feross modified the milestones: standard v13, standard v14 Jul 5, 2019
@feross feross modified the milestones: standard 14, standard 15 Aug 15, 2019
@feross feross modified the milestones: standard 15, standard 16 Oct 22, 2020
@feross feross modified the milestones: standard 16, standard 17 Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants