{"name":"confusing-browser-globals","version":"2.0.0-next.3e165448","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"],"files":["index.js"],"devDependencies":{"jest":"22.4.3"},"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\n## Installation\n\n```\nnpm install --save confusing-browser-globals\n```\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\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.3e165448","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-pZwPPzSauXxTBVPm5GXi43LIfTcepKi5k0/VoPi0Y4pz2m9LFwOjnIiRHVCKudG+5ST312A8PvEdOVROazSElA==","shasum":"4291b5f964b58600b1e1fb940cc3072b91f3605a","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.3e165448.tgz","fileCount":3,"unpackedSize":2630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJw3aCRA9TVsSAnZWagAA56cQAKFdtxdPQ7/be8hBmCjO\nX+cljbCTTWBMPRmzSM1L8Ef/A2c99fDq0WOKOjKxGJEgvLYjYKB+efseDfPN\nyW5siB4clKJePlNeQnDCDiSrLJn9fiuP0ZtWDk22kxEaP8vhflhpmL+LjGHx\nQcWGqZCcYVOhpT6H/yOdL0p89xkVZ7ilY9Crx7IM4hbGxUglTU9HDoSM4wNT\n15yqAUAONPrBkAK3caP6azzyPLxooFBjGiDmgzbyicWfotY+aSftXWQWxt0R\nxZS6JrLNQ1MfizIPTHVWuQhzDII3Fzk+sfePR9imeGUUww7mJYWKaoENfDQk\nX55mfwX3CApZWwMTWshK1WBL4A6c+QWQhYhsYeQoCi+RwgLUOoPy4MPIgHro\nG1alvpOc8F98Xbf0F1PSKJ7leA1YXA49MAhB6lC+8CrM3vj0kgOYJJUyyFfJ\nYwLaqZ0VJGTymfZIuyQGJK2puhjE+bH0EFZpQ/ASHARZJohl4kypemEIXSNB\njz/aVLFHngz064w5GvN+fBsCLerJFj/Mr8wrEx5mObcsS/s5R4JBjOdQ28yr\n7koBjBDnze6CMuXYHOZhcXSpRyfS3ul8hUHIr5jHdA06eBqBJ2toRhcGuFWe\nGYOYz9VKt7A32dJT6ufsW1CmCCtj4TOyUkryPGemfE8azu65WR0H9yB2RS96\n0/vf\r\n=fi8L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID3+uFaB2Ej07K7VA9RABbof4OVwFt2ciSuY426bAjnlAiBqmdaSG+a8HXWmVnfTkwYLRki7VCmUT/BklIi3UXDdKw=="}],"size":1380,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.3e165448.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_2.0.0-next.3e165448_1529286106375_0.39072869552214295"},"_hasShrinkwrap":false,"publish_time":1529286106441,"_cnpm_publish_time":1529286106441,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}