disable no-shadow for globals

This commit is contained in:
Timo Hocker 2020-02-08 14:15:50 +01:00
parent 06907fa109
commit 82e6d357b6

View File

@ -120,7 +120,7 @@ module.exports = {
// Variables https://eslint.org/docs/rules/#variables // Variables https://eslint.org/docs/rules/#variables
'init-declarations': ['error', 'always'], 'init-declarations': ['error', 'always'],
'no-label-var': 'error', 'no-label-var': 'error',
'no-shadow': ['error', { builtinGlobals: true, hoist: 'all' }], 'no-shadow': ['error', { builtinGlobals: false, hoist: 'all' }],
'no-undef-init': 'error', 'no-undef-init': 'error',
'no-undefined': 'error', 'no-undefined': 'error',
'no-use-before-define': ['error', { functions: false }], 'no-use-before-define': ['error', { functions: false }],