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

Commit 9f13b5f

Browse files
targosMylesBorins
authored andcommitted
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 c801de9 commit 9f13b5f

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)