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

Comments

@feross
Copy link
Member

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 the enhancement label Feb 28, 2017

@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

This comment has been minimized.

Copy link
Contributor

commented Mar 5, 2017

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

@feross

This comment has been minimized.

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.