bigbinary / wheel

Don't reinvent the wheel for every new Rails project. Use sane Defaults.

Home Page:https://wheel-production.neetodeployapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disallow implicit coercion

yedhink opened this issue · comments

I believe this would make the code more readable. In the allow list we can add coercion operators that we need to keep, if any. I would go with disallowing all of them as mentioned in below rule.

@Amaljith-K Can you please share your thoughts regarding this rule?

https://eslint.org/docs/latest/rules/no-implicit-coercion

We should be allowing !!foo. It is very frequently used in neeto world & is more convenient than Boolean(foo).
We can disable the rest of all kinds of conversions.

We should be allowing !!foo. It is very frequently used in neeto world & is more convenient than Boolean(foo).
We can disable the rest of all kinds of conversions.

Done exactly that. 👍