{"name":"eslint-plugin-react-hooks","version":"4.2.1-beta-96ca8d915-20211115","keywords":["eslint","eslint-plugin","eslintplugin","react"],"license":"MIT","_id":"eslint-plugin-react-hooks@4.2.1-beta-96ca8d915-20211115","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":"43df7dfaba247820667d5fae54f8d27b6e4cf452","tarball":"http://registry-npm.ywwl.com/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-4.2.1-beta-96ca8d915-20211115.tgz","fileCount":6,"integrity":"sha512-lWB4yJ+8EsqMmz5VJLFmzzGy3JhIeoUGN29V18CZln47YbMZM+cI+TlQOQ+e8AVIlK4snQ4Qo4ztAJwWp4DXrg==","signatures":[{"sig":"MEYCIQC57mTa9uQENKZ3OkZad8FIQA+/du/3wEc8wFuupX56vQIhAKLT8dslSbkEFtWw++T41lSaOqqLqPYAdhhKwpj4PNrp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkquRCRA9TVsSAnZWagAAsOoP/1zhCS33fiuXsFjgDjB3\nvCYI2VTRy8f1+9G1nBjW3b19Z3Kc4XrhHC+K14Z3Bi7BVkgu6vMU2I5HOYlk\n3d2xb3tis1SV1KT1LE2bXxuCt2eT3JGWjv/y4wDWOaIV6cbsgkGZ/iVvKBlD\nmNr2qap++ZvlSL9MqP0flQJ6FfiZi3DGtc+kiZFa75JGFI5+t69eO/0i18gv\nzRZyE13hRhNhIigaC8L4qKSw/B/lsHyiIfGV6zUG0kTHnG9mOJq3F4v23jrJ\nkGEYuJ3cbyyBC6m2Sf+nml4ZyVLhUTLeTSLmqzSw2cEUAA+A5Hf4kPZeMtcO\nFLs8aKr7yxeHslqMnDC8bUd0hy1BrfkAK3+EuUQ4McryrhNG9ZnHU1fLgnVC\nNUbeZ5wzXakjD+g53VEe5mD4DGzYFb8u4uYUpsp93Tf1jUrXkwLfNgUR7Oo8\nfL6EB/+zDQIAtDz/5TwaGhTGHejVi6TgY2OXUbCg3tc5Keh27g5rtnh3TmJf\ndGiZLQzViO14H/WDMzFeQnDiHsxRO3MvyhVEAXRkKytzTJnUDZga8LfyNxSr\ncJ7HojT6PO4ccbZx53M1q1By+B3XFzkr7ee4YMhx8XWlUIcpDAboD6+Xxolc\nMHBUo3EpJcD4Geo7YHUkZ8+qQMRbMID/+0hmkkAUaNvaCOrodhlEgDu3uElh\nAglV\r\n=eiZ7\r\n-----END PGP SIGNATURE-----\r\n","size":31248,"noattachment":false,"key":"/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.1-beta-96ca8d915-20211115.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-beta-96ca8d915-20211115_1637002129406_0.13549857308735258","host":"s3://npm-registry-packages"},"publish_time":1637002129556,"_cnpm_publish_time":1637002129556,"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"}}