Skip to content

Commit ef5e9ef

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
tools: implement no-unused-vars for eslint
PR-URL: nodejs#4536 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent b3b150c commit ef5e9ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ rules:
8484
# list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
8585
## disallow use of undefined variables (globals)
8686
no-undef: 2
87+
## disallow declaration of variables that are not used in the code
88+
no-unused-vars: [2, {"args": "none"}]
8789

8890
# Custom rules in tools/eslint-rules
8991
require-buffer: 2

0 commit comments

Comments
 (0)