{"bugs":{"url":"https://github.com/facebook/create-react-app/issues"},"dist":{"shasum":"2f0ab6fc4ae466b3b89af3f10c88573479aa4c46","tarball":"https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.279.tgz","fileCount":4,"integrity":"sha512-MOIPJlVdwFIn2vWn+HFtOhW4hwkIz8Mdh223teWHMhG3nChJWeTB/zk6FqPOBFkyoeMavtpmTKx8xjQ+bA91pw==","signatures":[{"sig":"MEYCIQCvBE2eLrPe/eBuX52322EzfCskX6txEw0EwtqHn/11ZgIhAIkmMPKMRypV+21ScWTWLgtvCDQrtdrbBftDagriurs1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYpZuCRA9TVsSAnZWagAA1bYP/11kX1agE9r5AaM3Fbft\nW9T8NnAO/Fh5NyyBzdQUb8bePkis0AkbUNgUjX+4S/GVarmm5ldAU23LpGoe\n+p+Z69TCvGPPQia8z6+dPzWx64aoJM0ck0ITNDoefqwMDLptRrxui9TC7y3T\nejSx6UxkaZBHLruOm69VWLhkOT+WFCBfrkI1BY8RsxgUE+vf1YtI5Kmpe3oy\nUVIQc1WMXlXg1Sh2xdeCVmgl9W645KsF9p7kPURbWWX9zOaLINB2Y64ATtoY\nwoqFdCMfIOXtPruxvNsdWK9VYrLq140WA0NebJFvEx/5CNBLZ3cTYj+qqYbJ\nSpmhJ89zhJF5qTVVWGL66HZoxwZGjBoqnDBdhKIbidDSp+IqyYjR/cZ+Rmm4\nbtJBf5bL8hlrC0zDrD3RLytQH/IjcZQR78qPRO6df9dP+KOhjhNCLM4kY9mo\nxuI5bj1BPNYpFcdyv1cOqN6tKXGpMDYoHbqp8v0iwiQ1NZfxtotxjMaxOKzu\nU2OGRGNHkvlA1VLGwjcIO41slsdHlCM5OX2szS59irDVVWINIOylPWgcvMiR\nP42ybAWnGMKjliEtvpURMy+8cPR12YU1WjcO6ZPjM9hmzq6QmTK6eJ+EkAts\nyLzcYDfP/smAw6YOaeEtmmJ2yPCPoR1oswwhagQsjI+J/SM6xKvJ63YEuzSf\nXzal\r\n=swob\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"confusing-browser-globals","readme":"# confusing-browser-globals\n\nA curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit `window.` qualifier.\n\n## Motivation\n\nSome global variables in browser are likely to be used by people without the intent of using them as globals, such as `status`, `name`, `event`, etc.\n\nFor example:\n\n```js\nhandleClick() { // missing `event` argument\n  this.setState({\n  \ttext: event.target.value // uses the `event` global: oops!\n  });\n}\n```\n\nThis package exports a list of globals that are often used by mistake. You can feed this list to a static analysis tool like ESLint to prevent their usage without an explicit `window.` qualifier.\n\n## Installation\n\n```sh\nnpm install --save confusing-browser-globals\n```\n\n## Usage\n\nIf you use Create React App, you don't need to configure anything, as this rule is already included in the default `eslint-config-react-app` preset.\n\nIf you maintain your own ESLint configuration, you can do this:\n\n```js\nvar restrictedGlobals = require('confusing-browser-globals');\n\nmodule.exports = {\n  rules: {\n    'no-restricted-globals': ['error'].concat(restrictedGlobals),\n  },\n};\n```\n\n## License\n\nMIT\n","gitHead":"930b5db456ec7c4f743d9a4c01ced0365908de18","license":"MIT","scripts":{"test":"jest"},"_npmUser":{"name":"iansu","email":"ian@iansutherland.ca"},"homepage":"https://github.com/facebook/create-react-app#readme","keywords":["eslint","globals"],"repository":{"url":"git+https://github.com/facebook/create-react-app.git","type":"git","directory":"packages/confusing-browser-globals"},"_npmVersion":"lerna/3.18.4/node@v12.18.1+x64 (darwin)","description":"A list of browser globals that are often used by mistake instead of local variables","directories":{},"maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"timer","email":"timer150@gmail.com"},{"name":"iansu","email":"ian@iansutherland.ca"},{"name":"ianschmitz","email":"ianschmitz@gmail.com"}],"_nodeVersion":"12.18.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"26.4.2"},"_npmOperationalInternal":{"tmp":"tmp/confusing-browser-globals_2.0.0-next.279_1600296558064_0.9311137839165322","host":"s3://npm-registry-packages"},"_id":"confusing-browser-globals@2.0.0-next.279","version":"2.0.0-next.279"}