Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-11-09 17:28:25 +0300
committerJames M Snell <jasnell@gmail.com>2017-11-13 23:30:29 +0300
commitb204b09dae7df56f03252c70fd28ba42d09e5197 (patch)
tree30de85b95db917833f32fefd03cde126f4eeb647 /tools/.eslintrc.yaml
parentbf2b5e1d5c239a1b4ea812051ec82101e1ce4347 (diff)
tools: enforce no unused trailing arguments tools directory
Use linting to enforce that the final argument for a function must be used. PR-URL: https://github.com/nodejs/node/pull/16953 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'tools/.eslintrc.yaml')
-rw-r--r--tools/.eslintrc.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/.eslintrc.yaml b/tools/.eslintrc.yaml
new file mode 100644
index 00000000000..f8b7cc4e41a
--- /dev/null
+++ b/tools/.eslintrc.yaml
@@ -0,0 +1,4 @@
+rules:
+ # Variables
+ # http://eslint.org/docs/rules/#variables
+ no-unused-vars: [error, { args: 'after-used' }]