tools: implement no-unused-vars for eslint
PR-URL: https://github.com/nodejs/node/pull/4536 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
bc39d6a3a6
commit
775cfdcd46
@ -84,6 +84,8 @@ rules:
|
||||
# list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
|
||||
## disallow use of undefined variables (globals)
|
||||
no-undef: 2
|
||||
## disallow declaration of variables that are not used in the code
|
||||
no-unused-vars: [2, {"args": "none"}]
|
||||
|
||||
# Custom rules in tools/eslint-rules
|
||||
require-buffer: 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user