summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2019-05-08 20:45:10 +0200
committerRoman Reiss <me@silverwind.io>2019-05-10 16:58:49 +0200
commit55b80f9029fb7d6a8b4212a9eebabdae970f7e52 (patch)
treefa4dfecd46f9b3816c5063adc208fc085f40577c /.eslintrc.js
parent99b196d4ba3c8919c9f35b406265b40e858d145a (diff)
downloadandroid-node-v8-55b80f9029fb7d6a8b4212a9eebabdae970f7e52.tar.gz
android-node-v8-55b80f9029fb7d6a8b4212a9eebabdae970f7e52.tar.bz2
android-node-v8-55b80f9029fb7d6a8b4212a9eebabdae970f7e52.zip
tools: enable block-scoped-var eslint rule
PR-URL: https://github.com/nodejs/node/pull/27616 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index cfada1f65c..b8ce85fa82 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -59,6 +59,7 @@ module.exports = {
'array-callback-return': 'error',
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
+ 'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': ['error', 'always', {