diff --git a/packages/eslint-config-airbnb-base/rules/variables.js b/packages/eslint-config-airbnb-base/rules/variables.js index 6fb98bcfb6..fc745549d6 100644 --- a/packages/eslint-config-airbnb-base/rules/variables.js +++ b/packages/eslint-config-airbnb-base/rules/variables.js @@ -28,7 +28,12 @@ module.exports = { message: 'Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan', }, - ].concat(confusingBrowserGlobals), + ].concat(confusingBrowserGlobals.map(function (g) { + return { + name: g, + message: "Use window." + g + " instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md", + }; + })), // disallow declaration of variables already declared in the outer scope 'no-shadow': 'error',