{"name":"confusing-browser-globals","version":"2.0.0-next.2150693d","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.2150693d","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"integrity":"sha512-rYts64QnVGtQVXeluqkc0r3lRo3RD7ak98o5qeIfIYNKrGysqOPy4Prs50lP2vqsYKzc8K4X77dmsAGPsee8IQ==","shasum":"255bc54421fd7b08d6c2f31c9a67e9d7c34a3f86","tarball":"http://registry-npm.ywwl.com/confusing-browser-globals/download/confusing-browser-globals-2.0.0-next.2150693d.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\nwsFcBAEBCAAQBQJbpVkvCRA9TVsSAnZWagAAE6EP/1ydtRkcxfFqljJg5nXj\n5rRb7pGN1srPseFvuH4NogxG1FzteAONQ43asqtohvzkvzyJ9Osx348kW2i+\n4NS0grG+lMuwcdMiUd+PqEbVyCULsv+8ALyPmuQ1pZzNzLqb2zbOPD3V5Tn9\nWTHjTkUAQ0jmGa0yRSpzUiloIBzv0e7+TDAxY+rz4GrRdigZFPMBmtXMiIqI\nLyBii4AoSYjzWRpn09DW4CnFc1yJwQJSrMS0MOqibt8CQlKQKd1ipVqhhI4A\nxLU27NYrhzGNYa86Sst+DjHpRb7WOr1zhMLS198Q+9N0cjV+WIlLb2JsHRBc\nn7Sgl5QTpZo2uXQkuM6/YGHVGJWIHTjYl7k952eWyYfg8E6oWlk9n7yIIxxQ\nMUO8uzh2Hs7GidZlZ+/1kJXF8UKwcba62U5X/WJXkXaK9QLbES3hVb+gbvBO\n8s/FvrNbfz1gs/X+eopSXf6/13aSEwqe1/VOiOm1f7mz7r1Jc18tm//pdIb9\ngeufLxsW01WNCRsAdTyHe6DTRjQVPReiolRi0gBut+auQciEeDrVhVyqaSJA\nhwqodHzoTcQowjS2af8leQ5oiWDT670zGnO29qY5LEQyB+G+aTQuPZFPER/Y\nA+nroe9hUscfgC2GAFFaGdfYecBbmjNsT5br7ZOYXINWrMRmLyU3L4FFS/H/\n4Hnw\r\n=5mx8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1PnydjsQvjPHtLIb+eaF7yex//rJiEPYuD9eoWYQR8AIhAORT+OWzRyVAEyUt6BpR3Ruwnr0A0Ir3ezRFuftpbZor"}],"size":1369,"noattachment":false,"key":"/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.2150693d.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.2150693d_1537562927086_0.1530798357465153"},"_hasShrinkwrap":false,"publish_time":1537562927221,"_cnpm_publish_time":1537562927221,"dist-tags":{"canary":"1.1.0-next.61","latest":"1.0.11","next":"1.1.0-next.14"}}