Skip to content

Commit 81fef91

Browse files
committed
tools, test: require const/let in test
PR-URL: #10685 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 7a0e462 commit 81fef91

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/.eslintrc

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
## Test-specific linter rules
22

33
rules:
4-
## common module is mandatory in tests
5-
required-modules: [2, common]
4+
# ECMAScript 6
5+
# http://eslint.org/docs/rules/#ecmascript-6
6+
no-var: 2
7+
prefer-const: 2
8+
9+
# Custom rules in tools/eslint-rules
610
prefer-assert-iferror: 2
711
prefer-assert-methods: 2
12+
## common module is mandatory in tests
13+
required-modules: [2, common]

0 commit comments

Comments
 (0)