Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/eslint-config-airbnb-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,8 @@
},
"engines": {
"node": ">= 4"
},
"dependencies": {
"eslint-restricted-globals": "^0.1.1"
}
}
4 changes: 3 additions & 1 deletion packages/eslint-config-airbnb-base/rules/variables.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const restrictedGlobals = require('eslint-restricted-globals');

module.exports = {
rules: {
// enforce or disallow variable initializations at definition
Expand All @@ -14,7 +16,7 @@ module.exports = {
'no-label-var': 'error',

// disallow specific globals
'no-restricted-globals': 'off',
'no-restricted-globals': ['error'].concat(restrictedGlobals),

// disallow declaration of variables already declared in the outer scope
'no-shadow': 'error',
Expand Down