We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0de1d43 commit bfa20fdCopy full SHA for bfa20fd
browser.js
@@ -1,10 +1,17 @@
1
'use strict';
2
const path = require('path');
3
+const confusingBrowserGlobals = require('confusing-browser-globals');
4
5
module.exports = {
6
extends: path.join(__dirname, 'index.js'),
7
env: {
8
node: false,
9
browser: true
10
+ },
11
+ rules: {
12
+ 'no-restricted-globals': [
13
+ 'error',
14
+ ...confusingBrowserGlobals
15
+ ]
16
}
17
};
package.json
@@ -49,6 +49,9 @@
49
"hint",
50
"simple"
51
],
52
+ "dependencies": {
53
+ "confusing-browser-globals": "1.0.9"
54
55
"devDependencies": {
56
"ava": "^2.3.0",
57
"eslint": "^6.4.0",
0 commit comments