Skip to content

Commit b204b09

Browse files
Trottjasnell
authored andcommitted
tools: enforce no unused trailing arguments tools directory
Use linting to enforce that the final argument for a function must be used. PR-URL: #16953 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent bf2b5e1 commit b204b09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/.eslintrc.yaml

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

0 commit comments

Comments
 (0)