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.
Refs: https://github.com/nodejs/node/pull/10543
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
tools test
cc @trott