{"name":"confusing-browser-globals","version":"2.0.0-next.b0cbf2ca","description":"A list of browser globals that are often used by mistake instead of local variables","license":"MIT","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/facebook/create-react-app.git"},"keywords":["eslint","globals"],"devDependencies":{"jest":"24.5.0"},"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","readmeFilename":"README.md","bugs":{"url":"https://github.com/facebook/create-react-app/issues"},"homepage":"https://github.com/facebook/create-react-app#readme","_id":"confusing-browser-globals@2.0.0-next.b0cbf2ca","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"iansu","email":"ian@iansutherland.ca"},"dist":{"integrity":"sha512-RChv9lKlg9Dwr0JX0ZrmGjvO6Iy12uyZgYO9U0zhAZ1g7WEv8XT0UUt+GiZidH1yjIBqWr2afUMIWFSjGRG6mQ==","shasum":"04833188aff5c063ed9236245bbd33d80a586421","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.b0cbf2ca.tgz","fileCount":4,"unpackedSize":3710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci+0ACRA9TVsSAnZWagAAn9MP/jmu898ms7nGkoD65Gh4\nZuGzwQLf3ouv6IHoNjXxo/TMFk50s4EDPENehqkpiaGY6If/4ZtqHeQTkJji\negPIM0Msj4bYbiJIsHYPtSJdXU7hbrr7jqFNBWXqPWWSThdnxxNSvqgkQJAP\n3CcAfTlUzDNwPAW2Yd6x+AngxJskblThVBnthFVTEtPwpbO4HzzCC9Co5mdO\ncqBd8Jrw5BiOHdsNBRnlWd5AtZEOs5HUFarz72pb3793FGXmbvkFjriW5nlR\nXufHQ84aOPXDyqLlLv8QyJI6V4hmloTIbpqLvqDknieFB1ytXLsJK5J9klxA\n5LcnNDIrCN5+WRD9BGtlxctVpv/mzq+10PW+c53D0nAzrGOkSz3zHoosrlkv\ngzqWhFHWmyC/SRm6Sb7+Kmq0JkybEbkwYVjSYD0t4jpPlNv99EBxbAkpw+Vi\nPtb9yIkmx1UyhR6Ia2hW25tdUIxXSZtRHpASeOSE9gYm0DXZjX5UcEhrjJ2F\nXVRxlKGq1KYqO2a01UHFqpJhjiYkXs7Qy6YInqIzut5W0eLGyLqeqPsvT2rQ\nWC8m/QNXwK9IlPjU/TYg0+wn1TrUfyssrxS/peYFBWl89jAIkzjLmy3XWWcx\nlRys08cjFme+b42HmZG5FuDgf8ED1lf0Hk5G4h8SncbcME3MOhYZ9Icj/AZ+\n0RWx\r\n=xNvl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZI3tynXE15xAkoIaJB71CYvo781VUyZgnNUv0+yJTfgIhANmYZP/squU7H3i+y6QUFRTWE+bFpbvklcFZv8FefudD"}],"size":2004,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.b0cbf2ca.tgz"},"maintainers":[{"email":"opensource+npm@fb.com","name":"fb"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"ianschmitz@gmail.com","name":"ianschmitz"},{"email":"timer150@gmail.com","name":"timer"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/confusing-browser-globals_2.0.0-next.b0cbf2ca_1552674045454_0.4969828835895074"},"_hasShrinkwrap":false,"publish_time":1552674045611,"_cnpm_publish_time":1552674045611,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}