summaryrefslogtreecommitdiff
path: root/doc/onboarding.md
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-04-16 11:29:35 -0700
committerJames M Snell <jasnell@gmail.com>2017-04-18 08:20:24 -0700
commit096508dfa97c6b10ed16db1f20da0cbe6ef808b0 (patch)
tree83e2fe2063656c9f74665cc3a213617b0d4db373 /doc/onboarding.md
parent2e5188de928946c81266b149887d9b31111a5267 (diff)
downloadandroid-node-v8-096508dfa97c6b10ed16db1f20da0cbe6ef808b0.tar.gz
android-node-v8-096508dfa97c6b10ed16db1f20da0cbe6ef808b0.tar.bz2
android-node-v8-096508dfa97c6b10ed16db1f20da0cbe6ef808b0.zip
tools,lib: enable strict equality lint rule
Enablie a lint rule to require `===` and `!==` instead of `==` and `!=` except in some well-defined cases: * comparing against `null` as a shorthand for also checking for `undefined` * comparing the result of `typeof` * comparing literal values In cases where `==` or `!=` are being used as optimizations, use an ESLint comment to disable the `eqeqeq` rule for that line explicitly. I rather like this because it's a signal that the usage is intentional and not a mistake. PR-URL: https://github.com/nodejs/node/pull/12446 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/onboarding.md')
0 files changed, 0 insertions, 0 deletions