{"name":"confusing-browser-globals","version":"1.0.5-next.9b4009d7","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.5-next.9b4009d7","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-v/9UF5onF6IRLsG7trAvPmfrcMYAGJB7z6bvEt8hpQr+bXPuwdmT5G/8Faxnfg1m7DMYSef4IVKsKb6lowg0aA==","shasum":"b4f13149a489afa9879ec8e6b9c50b8356e535a5","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-1.0.5-next.9b4009d7.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\nwsFcBAEBCAAQBQJbz8jRCRA9TVsSAnZWagAAGRUP/2C4mv0af8NGquvzE9lB\nXjORBpmNSY84rcmjKjeXFB8tI4FpAflZBeEZhP5jlfws/QYKlPclduF9aoGi\nrXzEcIblxmvVVbP94tuQwwnlvFnlthbyrA/o81JKqz8ziHO1JcA7qaFEK5X9\n9dVub8lnLQQeUyyeq4G+g+wf0ar1f/YSsUcOR+/1W8MXz3xy+6g+bG7iZKuN\nctn8AZxgZXRYqQNdiEG0c+hAg4DEZWeX2J3ea5Y6WGdrmNvacm2rKNwOGyTu\nUZrR1mMoqJGbzxbR3o0bzc2e69ZHLLCcEz2SBKbQEJGPuVIHlVD+aedMweFH\nEfrt9ojhwdxMPoIZNX4ZUml0YRPhuBaLm1F3jUsaZm2CqTDaAtjP5DQfAsfU\ntBou+23nc5vmepL+udIRMOQbwAfuQsdenOWY27RgSg8rupPruwkPEOheTg3V\nWxQAv5WgwlQc2CsN2q9UViWKDWM66X96M9Xhl+Gs9OTM9UXAu6zGeKFhqnFN\npsaraKLGnCVQpFK4sxLFot9KeWQFR19pSLRVwRlXJ1R5SF0EgT9cYrABAobz\nnVtfaUs5pm2Yr60pC8TsMBGUP/Qq7L3lzIoSPX4yHSmuBAdqrwnt4n6Gc03m\nEHD27VK4TNasD+u+f2ZXOYmZtvv9F3SiVFml2QPVsHozyor3ac+RllXd5ohf\ncKw0\r\n=Bg+N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWvs2XDuJcAKsllCjemj8ts1985T6m8ZyW1DvA37mhsAiB3iRH5aEzMOOBkChiwyS6PN8hSwojOtIl9jIIlJFNG+g=="}],"size":2003,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-1.0.5-next.9b4009d7.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_1.0.5-next.9b4009d7_1540344017261_0.27609278356376943"},"_hasShrinkwrap":false,"publish_time":1540344017394,"_cnpm_publish_time":1540344017394,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}