mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
096508dfa9
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> |
||
---|---|---|
.. | ||
cluster | ||
process | ||
streams | ||
test | ||
bootstrap_node.js | ||
buffer.js | ||
child_process.js | ||
errors.js | ||
freelist.js | ||
fs.js | ||
http.js | ||
linkedlist.js | ||
module.js | ||
net.js | ||
process.js | ||
querystring.js | ||
readline.js | ||
readme.md | ||
repl.js | ||
socket_list.js | ||
url.js | ||
util.js | ||
v8_prof_polyfill.js | ||
v8_prof_processor.js |
Internal Modules
The modules in lib/internal
are intended for internal use in Node.js core
only, and are not accessible with require()
from user modules. These are
subject to change at any time. Reliance on these modules outside of core
is not supported in any way.