kevin940726 / eslint-plugin-no-mixed-operators

Fixable no-mixed-operators rule for eslint
MIT License
7 stars 0 forks source link

Still fights with prettier #1

Open klippx opened 4 months ago

klippx commented 4 months ago

I followed the instructions and I tried swapping out no-mixed-operators with this plugin, and it works up until prettier runs and then prettier removes all the parens anyway. In what sense is this compatible with prettier I wonder?

I guess I will just disable the rule completely for now.

peterHakio commented 2 months ago

I had the same problem, we have prettier and eslint running in a precommit hook. Such that eslint run last. It makes eslint overwrite prettier and it works fine in practice, even if it is not perfect.