{"name":"confusing-browser-globals","version":"2.0.0-next.a671462c","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.4.3"},"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.a671462c","_npmVersion":"6.4.0","_nodeVersion":"8.9.4","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"integrity":"sha512-7zt/B9f1yzGB6q6Rj7VRix7+STy6WhtN2mq0yK4eC9thr5WNcxaeE45bg7A5nu8pyvqHobn9QnHm2NqqPcccwg==","shasum":"20ba918b28c136be2900e84f77aeae644a12e59e","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.a671462c.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\nwsFcBAEBCAAQBQJbgB9RCRA9TVsSAnZWagAAbxsP/3b4mMqaKJUwiHhl3Gis\nrRgc+ebyMiqS+fZ/0tSy1Hr83CvYJ6OVycrwRYUxiG0M0huB2iSur11Z2gJp\nZja88M12Lbd6nVr8ihTdqvR01OhFa+b4rm/ompybPzh6BazHLu3b9qMrdkVU\nanm5mzxmwGo8zZeaXuQBbMp2PTRHxxLHEmVFvIoN1NOQkrTyriFHWtVaIb2d\nk1/N3IjKcvdlhtZhsuH2UnpFfSQQJ3EJeB+NVkXqfSR1k75b60CIG9wiiq27\nHbWE8Dm62df3haZcYwPq9mq1YJqP7WGtAj6oCygYIrMVf24JMVCdLX5dbC32\nz3ic51qdAx51p4IoUwVBMxc8dxbUn/2aXty7h6poLfsK1yfjVBTcGNjmychw\np+2w5mSrOWTd20gWVodzUKmW2k4WL4nin7rK7klAZ0lh9+ja5KpW+7VziSFF\nNb0yCRwNe3W4MwCLcS44elZxrymymA6+78vVkbfrfqVXm76ICBKspFlbNPcp\nSko4L2kZqiAM/iNsTA0nl6u2JoXlKSWkPkvk1kvP9Qs5Rn3Z02lkPzypaAq4\nzbJg8cb56BRP8XtfXimrfRkSw/ocz0lhGDdAYLnK+uVwE93AqfjWVUiqY6pF\nLa3D9RQbJiihAS6LyM98deejtAwsKjpN76LL67ZWkciWkv0zhSOw48AdpUNT\nRof7\r\n=pL61\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbqsiUQO9+VcU4NETEN3hrfEXfHJYy9Ay4NMiCb53k/AiAZ1I6S5KpRED7nxgGTmAUV9EDoOc1XiGDLEQWyaZQS1Q=="}],"size":1369,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.a671462c.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.a671462c_1535123281326_0.735657040090202"},"_hasShrinkwrap":false,"publish_time":1535123281422,"_cnpm_publish_time":1535123281422,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}