-
Notifications
You must be signed in to change notification settings - Fork 819
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
chore: don't disable rule eqeqeq #1978
Conversation
the "smart" option would not complain on |
@legendecas Does this mean we should always write I think that making a difference between |
I prefer to use |
Codecov Report
@@ Coverage Diff @@
## main #1978 +/- ##
==========================================
+ Coverage 92.89% 93.01% +0.12%
==========================================
Files 152 150 -2
Lines 5922 5838 -84
Branches 1245 1227 -18
==========================================
- Hits 5501 5430 -71
+ Misses 421 408 -13
|
I'm fine either way, we just need to make a decision and stick to it |
Nice catch @legendecas , I would vote then for removing for anything else than number, string or boolean
for number
for string
for boolean
so in any case we won't have this
|
update to use strict eqeqeq. I'm not that happy with the result as I'm not able to avoid the separate null/undefined checks Update: As said I don't like the stricter variant therefore I reverted this. I think it's best to go with the smart variant for now like in API - or keep the rule completely disabled like it was in the past. |
same here as in open-telemetry/opentelemetry-js-api#12