tools: forbid template literals in assert.throws
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
tools
Description of change
Extend the assert-throws-arguments custom ESLint rule to also check for the use of template literals as a second argument to assert.throws.
Ref: https://github.com/nodejs/node/pull/10282#discussion_r92607290