diff --git a/config/eslint.js b/config/eslint.js index 9c77d1f7b39..d83c66a85f7 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -131,7 +131,11 @@ module.exports = { 'no-unreachable': 'warn', 'no-unused-expressions': 'warn', 'no-unused-labels': 'warn', - 'no-unused-vars': ['warn', { vars: 'local', args: 'none' }], + 'no-unused-vars': ['warn', { + vars: 'local', + varsIgnorePattern: '^_', + args: 'none' + }], 'no-use-before-define': ['warn', 'nofunc'], 'no-useless-computed-key': 'warn', 'no-useless-concat': 'warn',