Skip to content

Commit dc4258a

Browse files
TrottBridgeAR
authored andcommitted
tools: apply stricter linting to tools directory
Enable ESLint rules for trailing commas and arrow callbacks in tools directory. These rules are also in place in the benchmark directory. PR-URL: #26394 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Masashi Hirano <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 580ae56 commit dc4258a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: tools/.eslintrc.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
rules:
2-
# Variables
3-
# http://eslint.org/docs/rules/#variables
2+
comma-dangle:
3+
- error
4+
- arrays: 'always-multiline'
5+
objects: 'only-multiline'
6+
imports: 'only-multiline'
7+
exports: 'only-multiline'
48
no-unused-vars: [error, { args: 'after-used' }]
9+
prefer-arrow-callback: error

0 commit comments

Comments
 (0)