tools: forbid template literals in assert.throws · nodejs/node@e355604 · GitHub
Skip to content

Commit e355604

Browse files
committed
tools: forbid template literals in assert.throws
Extend the assert-throws-arguments custom ESLint rule to also check for the use of template literals as a second argument to assert.throws. PR-URL: #10301 Ref: #10282 (comment) Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Italo A. Casas <me@italoacasas.com>
1 parent 9c85d0f commit e355604

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/eslint-rules/assert-throws-arguments.js

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)