We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
confusing-browser-globals
1 parent 46ae3e2 commit 11ab371Copy full SHA for 11ab371
packages/eslint-config-airbnb-base/rules/variables.js
@@ -28,7 +28,10 @@ module.exports = {
28
message:
29
'Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan',
30
},
31
- ].concat(confusingBrowserGlobals),
+ ].concat(confusingBrowserGlobals.map((g) => ({
32
+ name: g,
33
+ message: `Use window.${g} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`,
34
+ }))),
35
36
// disallow declaration of variables already declared in the outer scope
37
'no-shadow': 'error',
0 commit comments