Skip to content

Commit 31b6580

Browse files
TrottMyles Borins
authored andcommitted
tools: implement no-unused-vars for eslint
PR-URL: #4536 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 1c95444 commit 31b6580

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc

Lines changed: 2 additions & 0 deletions
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)