{"bugs":{"url":"https://github.com/facebook/create-react-app/issues"},"dist":{"shasum":"fe08a1a5346e4238a311565ec989c632bdadc258","tarball":"https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-2.0.0-next.101.tgz","fileCount":4,"integrity":"sha512-t9qDCgfl8sm42HgqIim6TvC8AxAcLItRYBA064LwXXNuaoo2z1FlqaOdwyVx7IYHiEFXzThtj2QbkFNEN3QK3A==","signatures":[{"sig":"MEQCIBgyACIud14qX1YuPtrog/ln4w/i3u3sztoErHOcbv2ZAiAWDEWszZflgCHFO1crbxGZRrpm7pPORVfHygHkLvtFGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsPd5CRA9TVsSAnZWagAAxYIP/3S7hfNbiy5Jbe+v4pXd\nJuQ9GXlHrffSX++XUYC6vEEF6DvGXh/WBpRgfH5aNLxirARnj+D09c/lI4qK\n1Lcwo+CfxXoqfu2PDOZCGmeU4Hvi9mwLX/1760/2zO1cOqGvVjVhH5Qh2ROn\neqgkcigEqAW2vK/ZWo2AJzwqFtDZVvvV9SFeCkUvEuuSice5SuPUETyS3NAx\n9ksQ7k8kyKia/70iZKD6BlCelOOUhyZq5iJVlIVa3JFP6fJ97pMaUA4cz3lG\n5MXe/Tyo3YoF/9CvZ4cYSECbbIs+01q3GFxVhEl7tmYhHSrXBPbWhc/IBEO0\n8s8bt9JfEv1tbPQDldLqN2QOIz5iiLjAHfl33Np5ufRaUmFLWR+iJoMGVwCk\nOGKsp0hn8HyzCBCLmdLPnVAvCd4mZ6iZhWFzItiGrnYlPqUddQQd5masl33s\nBCmTqHTng4rVPEvKXSoDwyCmaA+PiOITy6tW4S8JwqTfI8LOLw7Gm3pUcnjT\nETv7vnmvBXT1jTLvFrE2T8zQa/1jC6o6r5aDjks83YPuISVcvcEOdsqN4RbM\ndMBCNOHjqXN1FP+88ysKJ+OHz9A4ZbL1BojSID5PFSkD9+rqJTNdb++7lWj6\nh72I+8S3CXYGdrUyorVrbC+4ydlLzthdP5TfHkFQqmG9UaaJlB9bHXQmJz0g\nmV05\r\n=dgOm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"confusing-browser-globals","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```sh\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\nconst 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","gitHead":"20edab4894b301f6b90dad0f90a2f82c52a7ac66","license":"MIT","scripts":{"test":"jest"},"_npmUser":{"name":"iansu","email":"ian@iansutherland.ca"},"homepage":"https://github.com/facebook/create-react-app#readme","keywords":["eslint","globals"],"repository":{"url":"git+https://github.com/facebook/create-react-app.git","type":"git","directory":"packages/confusing-browser-globals"},"_npmVersion":"lerna/4.0.0/node@v16.13.0+arm64 (darwin)","description":"A list of browser globals that are often used by mistake instead of local variables","directories":{},"maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"timer","email":"timer150@gmail.com"},{"name":"iansu","email":"ian@iansutherland.ca"},{"name":"ianschmitz","email":"ianschmitz@gmail.com"}],"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^27.4.3"},"_npmOperationalInternal":{"tmp":"tmp/confusing-browser-globals_2.0.0-next.101_1638987641258_0.874675700841907","host":"s3://npm-registry-packages"},"_id":"confusing-browser-globals@2.0.0-next.101","version":"2.0.0-next.101"}