From daddf5ae59ad4700058bca21847caed452416057 Mon Sep 17 00:00:00 2001 From: Gibson Fahnestock Date: Sun, 8 Jan 2017 15:23:00 +0000 Subject: [PATCH] tools, test: require const/let in test Backport-PR-URL: https://github.com/nodejs/node/pull/11775 PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Roman Reiss --- test/.eslintrc.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/.eslintrc.yaml b/test/.eslintrc.yaml index 90bf5f6d88d4e5..8414b828137e5d 100644 --- a/test/.eslintrc.yaml +++ b/test/.eslintrc.yaml @@ -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