We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324bf9c commit 0dd3dbdCopy full SHA for 0dd3dbd
packages/eslint-config-airbnb-base/package.json
@@ -62,5 +62,8 @@
62
},
63
"engines": {
64
"node": ">= 4"
65
+ },
66
+ "dependencies": {
67
+ "eslint-restricted-globals": "^0.1.1"
68
}
69
packages/eslint-config-airbnb-base/rules/variables.js
@@ -1,3 +1,5 @@
1
+const restrictedGlobals = require('eslint-restricted-globals');
2
+
3
module.exports = {
4
rules: {
5
// enforce or disallow variable initializations at definition
@@ -14,7 +16,7 @@ module.exports = {
14
16
'no-label-var': 'error',
15
17
18
// disallow specific globals
- 'no-restricted-globals': 'off',
19
+ 'no-restricted-globals': ['error'].concat(restrictedGlobals),
20
21
// disallow declaration of variables already declared in the outer scope
22
'no-shadow': 'error',
0 commit comments