0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/tools/eslint-rules
Teddy Katz 5d31448844 tools,test: enforce assert.ifError with lint rule
This adds an ESLint rule to enforce the use of `assert.ifError(err)`
instead of `if (err) throw err;` in tests.

PR-URL: https://github.com/nodejs/node/pull/10671
Ref: https://github.com/nodejs/node/pull/10543
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michal Zasso <targos@protonmail.com>
2017-01-09 09:20:38 -08:00
..
align-multiline-assignment.js tools: remove default parameters from lint rule 2016-04-28 22:48:37 -07:00
assert-fail-single-argument.js tools: lint rule for assert.fail() 2016-04-20 08:36:27 -07:00
assert-throws-arguments.js tools: forbid template literals in assert.throws 2016-12-19 08:04:36 +01:00
buffer-constructor.js tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
new-with-error.js tools: remove obsolete lint rules 2016-02-18 10:13:03 -08:00
no-let-in-for-declaration.js tools: avoid let in for loops 2016-10-14 13:37:12 -07:00
prefer-assert-iferror.js tools,test: enforce assert.ifError with lint rule 2017-01-09 09:20:38 -08:00
prefer-assert-methods.js tools: add eslint rule prefer-assert-methods 2016-09-20 16:35:39 -07:00
require-buffer.js tools: remove obsolete lint rules 2016-02-18 10:13:03 -08:00
required-modules.js tools: remove obsolete lint rules 2016-02-18 10:13:03 -08:00
timer-arguments.js tools: add lint rule to enforce timer arguments 2017-01-06 15:24:28 -08:00