Skip to content

Commit

Permalink
Adds confusing-browser-globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotny committed Feb 18, 2021
1 parent 248d901 commit b47fcab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@babel/eslint-parser": "7.12.16",
"@babel/eslint-plugin": "7.12.13",
"@rushstack/eslint-patch": "1.0.6",
"confusing-browser-globals": "1.0.10",
"dot-prop": "6.0.1",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-eslint-comments": "3.2.0",
Expand Down
4 changes: 3 additions & 1 deletion src/eslint.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const confusingBrowserGlobals = require('confusing-browser-globals');

const linebreaks = require('./utils/linebreaks');

module.exports = {
Expand Down Expand Up @@ -173,7 +175,7 @@ module.exports = {
builtinGlobals: true,
},
],
'no-restricted-globals': 'error',
'no-restricted-globals': ['error', ...confusingBrowserGlobals],
'no-restricted-imports': [
'error',
{
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=

[email protected]:
version "1.0.10"
resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz#30d1e7f3d1b882b25ec4933d1d1adac353d20a59"
integrity sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==

contains-path@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a"
Expand Down

0 comments on commit b47fcab

Please sign in to comment.