{"name":"eslint-plugin-react-hooks","version":"0.0.0-experimental-7f8c501f6-20230420","keywords":["eslint","eslint-plugin","eslintplugin","react"],"license":"MIT","_id":"eslint-plugin-react-hooks@0.0.0-experimental-7f8c501f6-20230420","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":"gnoff","email":"jcs.gnoff@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"},{"name":"lunaruan","email":"lunaris.ruan@gmail.com"},{"name":"react-bot","email":"react-core@meta.com"}],"homepage":"https://reactjs.org/","bugs":{"url":"https://github.com/facebook/react/issues"},"dist":{"shasum":"339a0161402b60525788fdbd3cc55610abc10c45","tarball":"http://registry-npm.ywwl.com/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-0.0.0-experimental-7f8c501f6-20230420.tgz","fileCount":6,"integrity":"sha512-cjopKVmdOHGzWLMm/96qJ1dox+PEi+3IB8L0z92kSBIKe787TIjCGY3xHUoh4avIOemYWs8/3q3fazVa3QvXIw==","signatures":[{"sig":"MEUCIQDnHPw4pk5CCPh3m34ZNe5HmufsM3GHp/Cc8ZaX0W+w2gIgMb22nv5vtgmT4nzZRHdcLzZCDLQC6/n/zZMxbRt2o6E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQWWEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpYQ//dk8UAbX6xADLkMkF6MLww3lL1tgPXdDYvZxY9JME+E1VahmU\r\neHoLRab4At/lkaNLcDNqk9J9R1knk1KfGvRW1WXTbu8BH9K3Lk1Cx9OLyIG3\r\nMdoavrT6ZIU6XtY9Iy6u3Nau7MJd+yuRPFCuUMwF3obPc47W2nMCojbX4pjU\r\nbVGTJ043cEON7N0zCkKBS5L8Vgd9QxTzphJ9oe8xH0OX995xJ87mC+bjDyE+\r\nVZorGEDQy6uVqIQAG0IB18aQ0cnZ1N9nhqI7c8s0uZOInEJ/6Rqvt29Y4r6l\r\nkRh/fxs7t+q75KljsRjxx2MHEBDjyPm544SHX90ru/u9KWpnFk+ry1f7x+fV\r\ng+zvRqy39jtj+1PYHm4wgrgBuFTZbTR6Xwz3rixZTe+oY9FyehhRhvGNzzCS\r\n2IU25KvFfoADPF2nfvDudiVdJltfdD/3NNfEHB5xJM8JAHR6jsoytXAe/1VV\r\nS3xZb7dmK8iSe3DipDa5YQ0s11Z/ZzzeI93JAQ8ior4slP+guFBxKo/pclWg\r\nzghrE5TKG/ySbXEA3cWVacGUgS0SphjabMcZU7YSpOWvLr2fEOE+iq1mJqev\r\nLAg7Bpc/G3/Ok35L4yxXZ+WDstam1EC6xBLQO6taczFMzO7XzyTY009b8Mwy\r\nmriqvHGwgHJarBJ9hkriTjnRbJx+8Xws2I4=\r\n=A6xQ\r\n-----END PGP SIGNATURE-----\r\n","size":32890,"noattachment":false,"key":"/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-0.0.0-experimental-7f8c501f6-20230420.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"},"gitHead":"7f8c501f682bd4abe24826a93538059d717ba39e","_npmUser":{"name":"react-bot","email":"react-core@meta.com"},"repository":{"url":"git+https://github.com/facebook/react.git","type":"git","directory":"packages/eslint-plugin-react-hooks"},"_npmVersion":"8.11.0","description":"ESLint rules for React Hooks","directories":{},"_nodeVersion":"16.16.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"babel-eslint":"^10.0.3","@babel/eslint-parser":"^7.11.4","@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_0.0.0-experimental-7f8c501f6-20230420_1682007428276_0.1415061313726862","host":"s3://npm-registry-packages"},"publish_time":1682007428495,"_cnpm_publish_time":1682007428495,"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"}}