Skip to content

Commit

Permalink
Disable some confusing browser globals (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
yangmingshan and sindresorhus committed Oct 18, 2019
1 parent 0de1d43 commit bfa20fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions browser.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
'use strict';
const path = require('path');
const confusingBrowserGlobals = require('confusing-browser-globals');

module.exports = {
extends: path.join(__dirname, 'index.js'),
env: {
node: false,
browser: true
},
rules: {
'no-restricted-globals': [
'error',
...confusingBrowserGlobals
]
}
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"hint",
"simple"
],
"dependencies": {
"confusing-browser-globals": "1.0.9"
},
"devDependencies": {
"ava": "^2.3.0",
"eslint": "^6.4.0",
Expand Down

0 comments on commit bfa20fd

Please sign in to comment.