Skip to content

Commit

Permalink
tools, test: require const/let in test
Browse files Browse the repository at this point in the history
Backport-PR-URL: nodejs/node#11775
PR-URL: nodejs/node#10685
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
gibfahn authored and andrew749 committed Jul 19, 2017
1 parent 8155ad4 commit 6aea35d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## Test-specific linter rules

rules:
# ECMAScript 6
# http://eslint.org/docs/rules/#ecmascript-6
no-var: 2
prefer-const: 2

## common module is mandatory in tests
required-modules: [2, common]
prefer-assert-methods: 2

0 comments on commit 6aea35d

Please sign in to comment.