0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Rich Trott 096508dfa9 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>
2017-04-18 08:20:24 -07:00
..
cluster
process lib: remove an unnecessary coverage check 2017-03-26 11:32:16 +02:00
streams crypto: make LazyTransform compabile with Streams1 2017-04-14 16:05:14 +02:00
test test: add Unicode characters regression test 2017-04-04 11:14:14 -07:00
bootstrap_node.js src: use option parser for expose_internals 2017-04-13 07:09:39 -07:00
buffer.js lib: more consistent use of module.exports = {} model 2017-02-22 08:56:08 -08:00
child_process.js child_process: improve ChildProcess validation 2017-04-17 16:20:29 -04:00
errors.js errors: add space between error name and code 2017-04-03 09:48:40 -07:00
freelist.js lib: refactor internal/freelist 2017-02-22 08:55:56 -08:00
fs.js lib: more consistent use of module.exports = {} model 2017-02-22 08:56:08 -08:00
http.js http: avoid retaining unneeded memory 2017-03-22 10:26:02 -07:00
linkedlist.js linkedlist: remove unused methods 2017-04-04 10:59:44 -07:00
module.js lib: improve method of function calling 2017-03-10 23:48:46 -05:00
net.js net: remove an unused internal module assertPort 2017-03-14 18:51:36 +01:00
process.js tools,lib: enable strict equality lint rule 2017-04-18 08:20:24 -07:00
querystring.js lib: use Object.create(null) directly 2017-03-24 15:25:49 -07:00
readline.js readline: remove unneeded eslint-disable comment 2017-03-15 16:59:07 +01:00
readme.md doc: limit lines to 80 cols in internal README 2017-04-13 15:30:10 -07:00
repl.js repl: docs-only deprecation of magic mode 2017-03-06 19:23:34 -08:00
socket_list.js lib: refactor internal/socket_list 2017-02-22 08:56:01 -08:00
url.js tools,lib: enable strict equality lint rule 2017-04-18 08:20:24 -07:00
util.js buffer,util: refactor for performance 2017-04-04 09:39:09 -07:00
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.