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: nodejs#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 committed Mar 4, 2019
1 parent 5fa642a commit 20c2ca8
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 20c2ca8

Please sign in to comment.