summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-02-04 11:26:44 -0800
committerRich Trott <rtrott@gmail.com>2017-02-07 14:17:52 -0800
commit43346586352741bc250c50da08c4655fb01e9e1a (patch)
treed087213b070310adeda728c58e14c196e9c517be /.eslintrc.yaml
parent78ba4943c53d9aa21eab7cae5a3a04a791562704 (diff)
downloadandroid-node-v8-43346586352741bc250c50da08c4655fb01e9e1a.tar.gz
android-node-v8-43346586352741bc250c50da08c4655fb01e9e1a.tar.bz2
android-node-v8-43346586352741bc250c50da08c4655fb01e9e1a.zip
tools: enable no-throw-literal ESLint rule
Only throw the Error object itself or an object using the Error object as base objects for user-defined exceptions. PR-URL: https://github.com/nodejs/node/pull/11168 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 4f691caefd..81c93e533b 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -40,6 +40,7 @@ rules:
no-octal: 2
no-redeclare: 2
no-self-assign: 2
+ no-throw-literal: 2
no-unused-labels: 2
no-useless-call: 2
no-useless-escape: 2