From 5bcb840abe438a76c37e2b37f8cb9fe223d263bd Mon Sep 17 00:00:00 2001 From: Siddharth Doshi Date: Fri, 12 May 2017 01:08:33 +0530 Subject: [PATCH] [eslint config] [base] [minor] Disallow unused global variables --- packages/eslint-config-airbnb-base/rules/variables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb-base/rules/variables.js b/packages/eslint-config-airbnb-base/rules/variables.js index 1eb7528a..3fc5f6ef 100644 --- a/packages/eslint-config-airbnb-base/rules/variables.js +++ b/packages/eslint-config-airbnb-base/rules/variables.js @@ -34,7 +34,7 @@ module.exports = { 'no-undefined': 'off', // disallow declaration of variables that are not used in the code - 'no-unused-vars': ['error', { vars: 'local', args: 'after-used', ignoreRestSiblings: true }], + 'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }], // disallow use of variables before they are defined 'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],