diff options
author | Rich Trott <rtrott@gmail.com> | 2017-07-30 13:46:34 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-08-02 09:27:35 -0700 |
commit | e506bcd899b3530ec69bdc00d5bac469b5753081 (patch) | |
tree | 37d68bdd1bb28bf2be19466adfe7f3941fb581cd /doc/api/assert.md | |
parent | 548cc72f6604b5bcf93dfcb9033b0c7c3fba1cdf (diff) | |
download | android-node-v8-e506bcd899b3530ec69bdc00d5bac469b5753081.tar.gz android-node-v8-e506bcd899b3530ec69bdc00d5bac469b5753081.tar.bz2 android-node-v8-e506bcd899b3530ec69bdc00d5bac469b5753081.zip |
tools: replace assert-throw-arguments custom lint
The functionality of ESLint custom rule assert-throws-arguments can be
replaced with no-restricted-syntax entries.
PR-URL: https://github.com/nodejs/node/pull/14547
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/assert.md')
-rw-r--r-- | doc/api/assert.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index c92ae3f3f1..5126c334e1 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -583,7 +583,7 @@ Note that `error` can not be a string. If a string is provided as the second argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes: -<!-- eslint-disable assert-throws-arguments --> +<!-- eslint-disable no-restricted-syntax --> ```js // THIS IS A MISTAKE! DO NOT DO THIS! assert.throws(myFunction, 'missing foo', 'did not throw with expected message'); |