{"name":"confusing-browser-globals","version":"2.0.0-next.b2fd8db8","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.1.2"},"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.b2fd8db8","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-KSGs2teE4uMEqoxo4QzrgwUpvlDEt38fgFckAoi9xE4IeA2ZnTz/0ax1o2Tirt3BBn80NbQRAot+qWC5/dsImg==","shasum":"76206be12de4e1ac8b07e8b71b6daea697ba8d73","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.b2fd8db8.tgz","fileCount":3,"unpackedSize":2630,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr9JBGpCHhjQ4SElQ5XcrAcWt6TEX/jXRtll/GyVvZpQIgbcq60VdYKz6n1JzZ8RE+c6vRcBB1zmrQADENl7GgrKs="}],"size":1383,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.b2fd8db8.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.b2fd8db8_1521658725473_0.9564744476648632"},"_hasShrinkwrap":false,"publish_time":1521658725543,"_cnpm_publish_time":1521658725543,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}