From 7f9d3f3e76d0b2a0588bd1fc89f76b36f37fe524 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 9 Nov 2017 14:28:25 +0000 Subject: [PATCH] tools: enforce no unused trailing arguments tools directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil --- tools/.eslintrc.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/.eslintrc.yaml diff --git a/tools/.eslintrc.yaml b/tools/.eslintrc.yaml new file mode 100644 index 00000000000000..f8b7cc4e41a747 --- /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' }]