{"name":"confusing-browser-globals","version":"2.0.0-next.fb6e6f70","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\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.fb6e6f70","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-zQuZ6JpoZJIx5KYxfHk/O+pUreXqtrpeXabvxQ2qQXyk5HWCElX0FF+emK+Kc/WuQKDmaEP1ErZcNnxDnWPEKQ==","shasum":"61b5e14045b6079d610a46492c11d3ede83aa1aa","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.fb6e6f70.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\nwsFcBAEBCAAQBQJbqll6CRA9TVsSAnZWagAAbToP/2xagO2g7HxeocH+gBZ9\nbXjQgpJnSKg3S9MdxKJqRGm/jdv+MR+9HAULzKD45apCx8OwaphUyZ34AUVb\nTtqzdwQEn5enh00TzC2rfUt0pYBLXzmyk0IMjsC9M2kCa/2+Ah4jEHnPy3wq\n2Ks7L4zuZFacBYYiU6OiDBDzgX/pKA5HUws52CwTF7R99ankyk9Dj9oZz1qg\niM6Kxql4c4++wbkQZm69KQD7mthd08mkAr9CnRqzwPKGef0ZLXuWgHjYD/4O\n02XeDbaHGmlDhchni+McIDVgMScaxMV7I85PX7S/Z5CoKgYNyjY5dlWz8Fkf\nOAlUvvROEBhbTp+WsAOm8gq7QXvUMODlLTWE3uBzLCAfy96tEXO+hBf9I99s\nIS3xgEfztvB4GxaaqSB9m31W8PL32w4oSO1/MCmN3SJz+k9MwPNtNpJwy76I\nncoTlHtiKO+WOCNyrKv+O8H3dZbwGLdw9iicWdQb3tPGGNcV9LcNPQZCA1sv\nOMLX0wKiTharRKn9ud0HjrJJMW9tCcB8dPBR2m4DEDgoELibfNZjsD/1PLTR\n0L50Mtl6gLev1LUfdzVntFg7D2K6iY/msMts02pCFRADCsiJS/LFQSCbsFFj\nZ9zuWJlBcyoQAEg4Wp/gw/X9+Ur3oyHK1MuaNYueAQinuD9sa6aob6tRDE7o\nBbrG\r\n=gpjt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWQvkRdmDGrX7lkSnSM15Pgi2/FE0mPZNnXkm5DAHzGAiEAqUJRV0/FvX9YRP8hWJ+6B4pOLl5CWR8c/cEk5Vhm4cg="}],"size":1368,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.fb6e6f70.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.fb6e6f70_1537890679378_0.19206633317652755"},"_hasShrinkwrap":false,"publish_time":1537890680197,"_cnpm_publish_time":1537890680197,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}