{"name":"confusing-browser-globals","version":"1.0.5-next.c662dfb0","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":"23.6.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```\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@1.0.5-next.c662dfb0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-YspMJIJrzo2ptRxMXd/utjBa1KA9Xfw82LEilGTVBTh5rHg+aTDXQRdYejzJ5urqKNaDjeKxjBLrx2igmuD1DQ==","shasum":"199c59dfc07beb468b876168ca5189f0b8afe160","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-1.0.5-next.c662dfb0.tgz","fileCount":4,"unpackedSize":3708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0c0CCRA9TVsSAnZWagAAtZUQAINwEM4Xuvrci4R7l4/K\nGk/7Hd2BeRn1FQu8UiSb6qv+o4Rc+1BZkSWkRWNOq4zituD62IlN3gWHipHt\n1RFra5oeuxeYK8Gg1zQQL7wsugf4j26q5XgjcH7WUv+xUguxKaxPLuIMyhYS\nAya9nPV8Khjs4ONLVSnmEAOYKIG0/0bcEthp0ailxn6yRAOyWta+rUydoL6b\nhGsrrzt2JjmRchJTtVUYIJG7zFw1ciL0pF0wHU5GIuWA3xMAhDLeqHsp6dCI\nHym63Z+Yjv0j80yn0eLXlUJIt92zS7Z2sj8S0rzO/aqaeeD+aJgrkDoPhoyl\n6Q+Vvm1li7X1SrC/GfBzzUOk/nNnc+chmlKnwXTtilyCpAFxxCdXz9QHkGM2\nR7/2Tqtkt4rbYiLRd+ryQeVkKZompUCLu0FRDCrg0pnjdsecX1JTmY4zgYUN\nov7sMKlduEE8+9tdMuSmgWJSl3G5pZGzDqLwj9rfUa+lmQaAReUxlL5vQ5U1\nWv91zHYYsWv9382/4Sn7QwbWb5m55xbF/RKcoXYAObLCOHQ8sazu3w+U2RXT\nkEqSGUaEOUpWWGqawtLLjN9ncy7VlLWwjQsNkoTIH/281y4ii/CH2eiNyet9\nELgZo6KKuGmz/CA1Or01GiR5d4FEl8iHMiFzV5shbSsHnTV8IAxFya5YIqYl\nW4nR\r\n=7V//\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfavnWyrQxfSPgrdg93geVQpfiVPsQAI2BOAu2Q3X2MwIgIECBaodsFHNOM48R1pONJmxi1BTQkLnueenI1FwZ9xQ="}],"size":2002,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-1.0.5-next.c662dfb0.tgz"},"maintainers":[{"email":"opensource+npm@fb.com","name":"fb"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"timer150@gmail.com","name":"timer"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/confusing-browser-globals_1.0.5-next.c662dfb0_1540476161456_0.1804195974761591"},"_hasShrinkwrap":false,"publish_time":1540476161534,"_cnpm_publish_time":1540476161534,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}