0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/tools/eslint-rules
Daniel Bevenius 50ebac1124
tools: add eslint rule for hasCrypto checking
The motivation for this commit is to pick up early on missing checks for
crypto support (when Node is built --without-ssl).

There are currently usages of common.hasCrypto which are not just for
detecting if crypto support is available and then skip the test in
question. For these case we still want to have a lint error generated
which can then be disabled using an ESLint comment.

PR-URL: https://github.com/nodejs/node/pull/13813
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
2017-08-30 18:02:58 -03:00
..
buffer-constructor.js tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
crypto-check.js tools: add eslint rule for hasCrypto checking 2017-08-30 18:02:58 -03:00
no-let-in-for-declaration.js tools: avoid let in for loops 2016-10-14 13:37:12 -07:00
no-unescaped-regexp-dot.js tools: simplify no-unescaped-regexp-dot rule 2017-08-03 10:31:36 -07:00
prefer-assert-iferror.js lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
prefer-assert-methods.js tools: add eslint rule prefer-assert-methods 2016-09-20 16:35:39 -07:00
prefer-common-mustnotcall.js tools: add rule prefering common.mustNotCall() 2017-03-26 12:47:21 -07:00
require-buffer.js tools: remove obsolete lint rules 2016-02-18 10:13:03 -08:00
required-modules.js tools: change var to const in ./eslint-rules 2017-07-02 19:27:03 -04:00
rules-utils.js tools: add eslint rule for hasCrypto checking 2017-08-30 18:02:58 -03:00