hluisson / eslint-plugin-jsx-expressions

Rules for safe logical expressions in JSX
95 stars 12 forks source link

Add option to avoid clash with no-implicit-coercion #12

Open SuperKXT opened 1 year ago

SuperKXT commented 1 year ago

I have the rule no-implicit-coercion turned on and it clashes with the fix from strict-logical-expressions.

Right now, I'm using the no-autofix plugin to suppress the correction and fixing them manually, but that adds an extra dependency.

I think this can be fixed by either adding the option to fix by replacing it with Boolean(value) or by adding the option to turn off the fix.

I would be willing to take this on myself, but I will need some direction.