Skip to content

Commit

Permalink
tools: apply stricter linting to tools directory
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and BridgeAR committed Mar 12, 2019
1 parent 580ae56 commit dc4258a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
rules:
# Variables
# http://eslint.org/docs/rules/#variables
comma-dangle:
- error
- arrays: 'always-multiline'
objects: 'only-multiline'
imports: 'only-multiline'
exports: 'only-multiline'
no-unused-vars: [error, { args: 'after-used' }]
prefer-arrow-callback: error

0 comments on commit dc4258a

Please sign in to comment.