{"name":"eslint-plugin-react-hooks","version":"4.2.1-rc.2-next-8fce11699-20220316","keywords":["eslint","eslint-plugin","eslintplugin","react"],"license":"MIT","_id":"eslint-plugin-react-hooks@4.2.1-rc.2-next-8fce11699-20220316","maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"threepointone","email":"threepointone@gmail.com"},{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"},{"name":"lunaruan","email":"lunaris.ruan@gmail.com"}],"homepage":"https://reactjs.org/","bugs":{"url":"https://github.com/facebook/react/issues"},"dist":{"shasum":"74e1c69a3fb1dafcb32ccb6cc93a3043b81eccbc","tarball":"http://registry-npm.ywwl.com/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-4.2.1-rc.2-next-8fce11699-20220316.tgz","fileCount":6,"integrity":"sha512-ymGlFxAG6IrKOD9DpqFt7gwzK5S3W1OnBb/mulum8wlzS8v2kV6nfnraerE48YEHODOavUGIANmyyHDU+D8s8Q==","signatures":[{"sig":"MEUCIDw/mehV8PPscMb0zJNnSiKHEoOd5H2hVFQEcEgXIm5dAiEA2s85/5fIVlKXQ/JUdsUOdWr3xEY1qTh2F2PCu2ay9yg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMgypACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1Nw//X4N4yeOYxviU60hFTrUyXDgDXXHlAj21WMY/sTR+/KA2RaUe\r\nr1PXYXWM5b19XvS43zCl99sM27AnQelZZLx+nyx7e3ogdcu4yIbkaiRUEJWM\r\nfLpjiF9hbItmptL3bEmfU7adnVwzwDF1B1Jngyuf/4BRQRBC4bdvblSLwRO8\r\nnKdNRrpQNB8Hfdmd3kwSzXHSDTldMMQiHqRb4mU/u4D8Fg21NK2Dzkn6iSbI\r\nJY70CBt/qDFBpEEnprSiSIdv+coxHFh+9ckbEESAlveCu4mew6F26Yd48d54\r\n7LVJyBFyuXM65M5UcfWFbFEvRABRpB1gDCyHsQn6vu5YQ0O76jpdp5IJExa8\r\ncpky6mvyL9aPkRlk2lgrUx7ucaWQCUeSomGiaCqbGI61LoUb8rzB3/PG8dji\r\nxKyRR2SPBQidBHlidGBhGWtyvbbVwx7sZdBfHCFm14OM+v30cjLYViosA5jf\r\nJf5tOeJINDcTvdpBk9nV56sIPnjZ3JNQTW1io5jQtI9SJ5FZX0QBK20Yr+5P\r\nkA7XFMoL3IOLvBQcoW4TTdXs/yrPvjCuhiJyTZfdwifK9btpE/4rQDm0Q66g\r\nlf9mkL+9S6HWueIJHXeh62P26I6yKJY3F0lC/WUZZ5jTlFtrmWp+A3Wd6gj6\r\nYajWbh7mDUKDhb41Bfhg9pQcm1D/RTlIAmA=\r\n=Diyn\r\n-----END PGP SIGNATURE-----\r\n","size":31233,"noattachment":false,"key":"/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.1-rc.2-next-8fce11699-20220316.tgz"},"readme":"# `eslint-plugin-react-hooks`\n\nThis ESLint plugin enforces the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html).\n\nIt is a part of the [Hooks API](https://reactjs.org/docs/hooks-intro.html) for React.\n\n## Installation\n\n**Note: If you're using Create React App, please use `react-scripts` >= 3 instead of adding it directly.**\n\nAssuming you already have ESLint installed, run:\n\n```sh\n# npm\nnpm install eslint-plugin-react-hooks --save-dev\n\n# yarn\nyarn add eslint-plugin-react-hooks --dev\n```\n\nThen extend the recommended eslint config:\n\n```js\n{\n  \"extends\": [\n    // ...\n    \"plugin:react-hooks/recommended\"\n  ]\n}\n```\n\n### Custom Configuration\n\nIf you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:\n\n```js\n{\n  \"plugins\": [\n    // ...\n    \"react-hooks\"\n  ],\n  \"rules\": {\n    // ...\n    \"react-hooks/rules-of-hooks\": \"error\",\n    \"react-hooks/exhaustive-deps\": \"warn\"\n  }\n}\n```\n\n\n## Advanced Configuration\n\n`exhaustive-deps` can be configured to validate dependencies of custom Hooks with the `additionalHooks` option.\nThis option accepts a regex to match the names of custom Hooks that have dependencies.\n\n```js\n{\n  \"rules\": {\n    // ...\n    \"react-hooks/exhaustive-deps\": [\"warn\", {\n      \"additionalHooks\": \"(useMyCustomHook|useMyOtherCustomHook)\"\n    }]\n  }\n}\n```\n\nWe suggest to use this option **very sparingly, if at all**. Generally saying, we recommend most custom Hooks to not use the dependencies argument, and instead provide a higher-level API that is more focused around a specific use case.\n\n## Valid and Invalid Examples\n\nPlease refer to the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html) documentation and the [Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#what-exactly-do-the-lint-rules-enforce) to learn more about this rule.\n\n## License\n\nMIT\n","engines":{"node":">=10"},"_npmUser":{"name":"acdlite","email":"npm@andrewclark.io"},"repository":{"url":"git+https://github.com/facebook/react.git","type":"git","directory":"packages/eslint-plugin-react-hooks"},"_npmVersion":"6.14.15","description":"ESLint rules for React Hooks","directories":{},"_nodeVersion":"14.17.6","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@typescript-eslint/parser-v2":"npm:@typescript-eslint/parser@^2.26.0","@typescript-eslint/parser-v3":"npm:@typescript-eslint/parser@^3.10.0","@typescript-eslint/parser-v4":"npm:@typescript-eslint/parser@^4.1.0","@typescript-eslint/parser-v5":"npm:@typescript-eslint/parser@^5.0.0-0"},"peerDependencies":{"eslint":"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-react-hooks_4.2.1-rc.2-next-8fce11699-20220316_1647447209214_0.7223338300224016","host":"s3://npm-registry-packages"},"publish_time":1647447209429,"_cnpm_publish_time":1647447209429,"dist-tags":{"beta":"5.1.0-beta-26f2496093-20240514","canary":"7.1.1-canary-edae846a-20261125","experimental":"0.0.0-experimental-edae846a-20261125","latest":"7.1.1","next":"7.1.1-canary-d5736f09-20260507","rc":"6.0.0-rc.2"}}