{"name":"confusing-browser-globals","version":"1.0.6-next.6a95aae9","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.6-next.6a95aae9","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"ianschmitz","email":"ianschmitz@gmail.com"},"dist":{"integrity":"sha512-DZAuylTeybmIOcAbsn1UUwD+EeCUBxpkP1Q9BX+y4hb8PJ0t8wPtIippfq8kzAEmpBbgQTvL/jha2fFD3Th35Q==","shasum":"39fc6c92bb6b146b749b8d41ab944b1d0c2c1faa","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-1.0.6-next.6a95aae9.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\nwsFcBAEBCAAQBQJcL6cJCRA9TVsSAnZWagAAc/IP+wRSNLdXx7HhKinoyko6\nTcUeoXOmmYhqxZ5GcZ1N+dNLXmvKaqpyoAx3HirR3u15Vec6+zcm2CMOgpU7\nyxJJ8litzsEnfLC3qaOreYDRyhqEWDmc3yxkmuyaGB92on35r3zm6qfxrvRH\neTMjI4etbcP87mcgYuYc1JUvHzF271yRxahAEeHO9FAhlgjlKCSeswuPBH5h\nf92Th/LYVznMcbzwKG66GjtpgjkTevZyRRXs23auHXR9zJLVrVU9DbQ0V/4d\nKZcE2b42Vy2qHwOWo7PVsk/1om8UjzR22AMUVjjlLmOIfIfYLpiVDQVTEGrM\n+XG12hzzKu9XFVUlLMvxbs/29wZQpeWnou04eX6P7yeTZ4CUOD+lKnIJEPb/\ne1dc8CptGp/Os/cn4ajCRxGGYxj8ch61zz1G362hIZlB60LX+rBSDIMgD1bO\nLVBoXAc0a4HoMLb8LGzBRb1dCfQX3d+gHxD0TPDgpCVypiiKgHgaEKtIDu+y\nwfbS3f3RdHUO2aan/tMTaZHc0Vj/30uNLwxPQ1tdK347aZG6VBks5eRZmYfq\nzeYcIdew/TK+y7nfbmssXlW68a2IygpHSAZNzicCcfsUcVL9o8L4x4jJ1DXr\nzJDhu8GIJKSRnV7Huq1WKJspma9WUSwdl7ID9eMF5ozudIolNFPdt6ncmit9\n4MzU\r\n=vh4c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuTqqDKpFvxa/mYTGoabcenrssUPVRVv4HUB9AfXt/UAiBA2Z1FsfUwwPNfW4hgMLEFUYhCIi4WouiQI2I3HXki1w=="}],"size":2002,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-1.0.6-next.6a95aae9.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_1.0.6-next.6a95aae9_1546626824850_0.4118924786555238"},"_hasShrinkwrap":false,"publish_time":1546626825009,"_cnpm_publish_time":1546626825009,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}