feat(basic): ban global
variable (#189)
This commit is contained in:
parent
a3598d36d2
commit
e787e9a647
@ -259,6 +259,7 @@ module.exports = {
|
||||
asyncArrow: 'always',
|
||||
},
|
||||
],
|
||||
'no-restricted-globals': ['error', { name: 'global', message: 'Use `globalThis` instead.' }],
|
||||
|
||||
// es6
|
||||
'no-var': 'error',
|
||||
|
Loading…
Reference in New Issue
Block a user