feat(basic): ban global variable (#189)

This commit is contained in:
曾明健 2023-05-26 23:39:10 +08:00 committed by GitHub
parent a3598d36d2
commit e787e9a647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,6 +259,7 @@ module.exports = {
asyncArrow: 'always',
},
],
'no-restricted-globals': ['error', { name: 'global', message: 'Use `globalThis` instead.' }],
// es6
'no-var': 'error',