{"name":"eslint-plugin-react-hooks","version":"4.5.0-next-af730436c-20220405","keywords":["eslint","eslint-plugin","eslintplugin","react"],"license":"MIT","_id":"eslint-plugin-react-hooks@4.5.0-next-af730436c-20220405","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":"b0205c1fc348617eba2a2a1a32d813d969cd7e48","tarball":"http://registry-npm.ywwl.com/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-4.5.0-next-af730436c-20220405.tgz","fileCount":6,"integrity":"sha512-etF3okx2cfzMQ+llmomxlXgM1VRe8w19jVP5pzULjhiQ4XfDADkwI4lG1l3ei6NZzqZkV5jmJdnnUD9Miv/q7Q==","signatures":[{"sig":"MEUCIC9aIUbI/1S1L2MIT7p0lGmbumS5jkCqN1AHPJvrn4G+AiEAyMz75ecbj4L+PuVdO5r60sz8STNGKEr041vZq7offrk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTGp+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEsQ/7BO5KcQYdWkRoBjxXaulH/wG8g153Z4VYnBrWGUIcY3p4nv3q\r\nXp/LhMBIkVsaHm85bF/jS4yUHOoxcKaemppjGEb+Z58B3uK02B88YKUi2VTs\r\nzovFNEXg+oYiQl6KcnwLTGCsuHOotVFF1wQrM8YgN/zIx10emXQH+Yi0/vNy\r\nanDUtSkQt0pinQi5f1TZKW9BHOGs0B/1cOT67GCQYyfMt3h0NVMo+y/sZuTf\r\ny8sM9xGU1gRRON2J1T1OASVIdUejjhtutXLOW8J/N+NsgPXUUwMSauVz/L8E\r\nf3Zvk1aXVx914WgcIBBpHnKJoRPPzrTxk3EfyZ85FrFj95KyaL3NfqfQWLtA\r\n5XOYsNl2bGApzFlgIrJILSvg0lCgvsYLQstqlMKr5RP5VOoeQNmyOmpFloe9\r\n6SKGuZCFp+uMHPtZCvCINH1BaJFmWNisV9DQ6MVbpCFwLG1gOiJ2b+t9e8jK\r\na42XxTh5ikK+mXYeMKeoL/XKRdCPJ6LevbusD//hC967CglbY9S7kmW8fZ57\r\nA+whFR902FOscsDaRkHSLkHHuD65aezeQxHDwIArWoweUvf+zqI9GCKrppoG\r\nlKvjr+Tji7bK63XxQVZNf2XfpBrRzZDIdc4JtoqB4lmLi33BSRMvo2buMe2l\r\ndLW0g/VPlVA/1bUcuy1K0SAxgf/0pFA4lTY=\r\n=vUhI\r\n-----END PGP SIGNATURE-----\r\n","size":31229,"noattachment":false,"key":"/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.5.0-next-af730436c-20220405.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.5.0-next-af730436c-20220405_1649175166713_0.886430400374983","host":"s3://npm-registry-packages"},"publish_time":1649175166884,"_cnpm_publish_time":1649175166884,"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"}}