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 <riclau@uk.ibm.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • 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.