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>
This commit is contained in:
Rich Trott 2017-11-09 14:28:25 +00:00 коммит произвёл James M Snell
Родитель bf2b5e1d5c
Коммит b204b09dae
1 изменённых файлов: 4 добавлений и 0 удалений

4
tools/.eslintrc.yaml Normal file
Просмотреть файл

@ -0,0 +1,4 @@
rules:
# Variables
# http://eslint.org/docs/rules/#variables
no-unused-vars: [error, { args: 'after-used' }]