Skip to content

Commit

Permalink
feat(basic): ban global variable (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed May 26, 2023
1 parent a3598d3 commit e787e9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-basic/index.js
Expand Up @@ -259,6 +259,7 @@ module.exports = {
asyncArrow: 'always',
},
],
'no-restricted-globals': ['error', { name: 'global', message: 'Use `globalThis` instead.' }],

// es6
'no-var': 'error',
Expand Down

0 comments on commit e787e9a

Please sign in to comment.