{"name":"confusing-browser-globals","version":"2.0.0-next.47d2d941","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.47d2d941","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-WAgTE25WU9KRFjYyVQu2NZdEpeaG935NnzL4nc8etVt6N4IFuYXEoFqYjmVro6fk9Z/gh4BWVP/jX2coxfElQQ==","shasum":"8a15b616614f1c35958976c729ab68540fb18760","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.47d2d941.tgz","fileCount":3,"unpackedSize":2630,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDrnhkgcKZz3cafC7pelx6zd2CxonyBdBf4SFuf/J1llAiB5+1sixm+OazrYQykQoebKr8hE3d8KoCBQktXA4rOCmw=="}],"size":1379,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.47d2d941.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.47d2d941_1517970499441_0.39621886137296625"},"_hasShrinkwrap":false,"publish_time":1517970500169,"_cnpm_publish_time":1517970500169,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}