diff --git a/packages/eslint-config-airbnb-base/package.json b/packages/eslint-config-airbnb-base/package.json index 91bcb47195..4ec1497674 100644 --- a/packages/eslint-config-airbnb-base/package.json +++ b/packages/eslint-config-airbnb-base/package.json @@ -71,7 +71,7 @@ "node": ">= 4" }, "dependencies": { - "eslint-restricted-globals": "^0.1.1", + "confusing-browser-globals": "^1.0.5", "object.assign": "^4.1.0", "object.entries": "^1.0.4" } diff --git a/packages/eslint-config-airbnb-base/rules/variables.js b/packages/eslint-config-airbnb-base/rules/variables.js index aeab992320..701340ab56 100644 --- a/packages/eslint-config-airbnb-base/rules/variables.js +++ b/packages/eslint-config-airbnb-base/rules/variables.js @@ -1,4 +1,4 @@ -const restrictedGlobals = require('eslint-restricted-globals'); +const confusingBrowserGlobals = require('confusing-browser-globals'); module.exports = { rules: { @@ -16,7 +16,7 @@ module.exports = { 'no-label-var': 'error', // disallow specific globals - 'no-restricted-globals': ['error', 'isFinite', 'isNaN'].concat(restrictedGlobals), + 'no-restricted-globals': ['error', 'isFinite', 'isNaN'].concat(confusingBrowserGlobals), // disallow declaration of variables already declared in the outer scope 'no-shadow': 'error',