{"name":"confusing-browser-globals","version":"2.0.0-next.66cc7a90","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.66cc7a90","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-pVhpqs/CvjFgJm6pIamnHI7xxutxywZr4WaG7/g3+1uTrJldBS+jKe/4NvGv0etgAAY6z2+iaogt4pkXM+6wag==","shasum":"438e83bb16602abf1cd5c5aa9d6e4d61d924743e","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.66cc7a90.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\nwsFcBAEBCAAQBQJa23NICRA9TVsSAnZWagAApEoP/id/bKvrWuvNTz/uRY1o\nyYH4UGdGyz6qpQHAzvkw/Km0Z+IzSsxiSo3dS7UENmCHEvHX6EiPhcHq9KYZ\n95z7Ncp/r2tJ2X0QkyHXeNVirctdKE2291aKLrJvw/eeuqyOykkKaiwLOXA5\nH5kY9a1t0IM6hziVIQ/ZdvJMcH5aHlPW43NM1DEBFmFUt/w0Pcf+t0bGeH9p\n2NiuC3nIodKWlhvHUOi7JQX/t8iLOgFMe1MydRjipOd48nK068ypkGGvxO0q\nUv5S1pzX1xxdgsuX5Yplo2t1qM8Nz5ZWG73zutRq5KY7om79OVKiO3j9TNit\nuC9q1fTPPZSl0yvSck+U9ech07AlrV3GFwQrJ2wLyk2TVTQuSXGyQtQ6wzmP\n8imkCsVSA5IahIqQLaAtlPakbAuyIRWzVX5gIYQ6JtgmAdjiJ7D+ycxODsZH\n02x5d91m4eUJYVMh19gW0zMcrygjr6VdCs927j0ZArflE/Y6GkUfCnwr3viM\nhRKyOhU7zMw752jUWcsxe+A5Jkx+/pGjoTabcC/zjqaUXA4DPhlddfLfUoR+\nDc3kZx2Gd2TwshNKu0hT6rdGVLofgC7Pp93lSUZntAMpKlShAeZzJ6yRrd/x\nB4JpOMf2aJN6iEXWb+iYNmFzBcKEIhkSptk5BSLdgWMrZaaRmm6o4BZCglMr\nPaO+\r\n=uiux\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTO2ypf3pxo/2b3I0LMhdwQMoOSzpr4ped166Xe0u/9AiBGzHfYkYWhaZHqmfWGqODpK4YXNJt/3qLADBzLmjjSjQ=="}],"size":1377,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.66cc7a90.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.66cc7a90_1524331335604_0.22404781841544752"},"_hasShrinkwrap":false,"publish_time":1524331335694,"_cnpm_publish_time":1524331335694,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}