{"_id":"eslint-plugin-use-effect-no-deps","_rev":"4-0176b337f755d5cd519e5a496a40ac71","name":"eslint-plugin-use-effect-no-deps","dist-tags":{"latest":"1.1.2"},"versions":{"0.0.0":{"name":"eslint-plugin-use-effect-no-deps","version":"0.0.0","description":"Warns a user when the react hook useEffect is called with no dependency array","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alex Henry"},"main":"lib/index.js","scripts":{"test":"mocha tests --recursive"},"dependencies":{"requireindex":"~1.2.0"},"devDependencies":{"eslint":"~4.18.2","mocha":"^6.2.2"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"b94149672749c7dc638d76ffedaa7c3f68bc8362","_id":"eslint-plugin-use-effect-no-deps@0.0.0","_nodeVersion":"8.12.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-hZf5CSu2jRIseCIhHjqsMAin0DZSgEtyANIH4nleuOensdjxZi9myNeRRMs0+wmByOYfhMwaAsVZZ3XoNF5P0Q==","shasum":"07b3a4177499d2139e782da1db68b2ca3a59a420","tarball":"https://registry.npmjs.org/eslint-plugin-use-effect-no-deps/-/eslint-plugin-use-effect-no-deps-0.0.0.tgz","fileCount":7,"unpackedSize":7678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1GnsCRA9TVsSAnZWagAAWIQP/27rpGKhHgPo0E9Cz03T\noTyl3mgRomfQucu7UA6p0Dbl7Tls1Kxh8tLhLefPKUwBgU4fFF4lViXGpDIc\nPCg1ebBQZ95XroplblDLzM0nXhcsVKQJICZn9tqnLhwthDFot+O7PlNJ4y8/\netcSmQ9/Chh/PTbVPNT5gwT0V4quZw7/ndo39WjWB7QDOVBgW6iciKoplPQe\nB1IxDAZ5jEwU/Cmiwi6rhzf7RM4WFMdDBTe3FFViqtRBFg+zU9y+PqBoPi0D\nBdbjbAOPDSnnuOaBI9OYdKbIkMSc+roK2NkEi/s0PyYv5WsoXOnsFXIgfXWy\naepCoMC3ImxuXwzaSxGPtzz5ulIll1KSDtILYPciZinzQax8uiSbrl6ats1R\nCBuaIHXCI7tLKYDzJ0h8yOfiAP1gzGaMzbqM7O9+40VXXcAOZNwI3Qx01Sm7\nSY/lKojhueJVpIsvSUonOmGw534HIJYY4ug2S+YiU9M3woU+JtRcjhc0VkR2\noOKQC3+wBQLk2C5F+lN7ezB0tKhzsTGbCjq8BfdZeuLWt5aSMbp5dehCBEyX\nzHPHgD0pVWfrM958b291oRjVxO4MnRASgoBTQaWkK1gqF211VnuJrtOY5Lqb\nmyaAV0AeZj1TY6ptdoADYpTA1v20gHaC/Vh3YcSDCxwlJlN4NZvfabJbp8v0\nUiN+\r\n=vC34\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbiXlWArMLgXmvghhlfSI8Xnn+lsIWO6E9fUy5P6UQBwIgR+R9qk29Wi48cPXNOW3zarJRdIB0yAHNd9NVuP6P1NA="}]},"maintainers":[{"name":"alxhenry","email":"zaber123@gmail.com"}],"_npmUser":{"name":"alxhenry","email":"zaber123@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-use-effect-no-deps_0.0.0_1574201836172_0.9851313600429872"},"_hasShrinkwrap":false},"1.0.0":{"name":"eslint-plugin-use-effect-no-deps","version":"1.0.0","description":"Warns a user when the react hook useEffect is called with no dependency array","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alex Henry"},"main":"lib/index.js","scripts":{"test":"mocha tests --recursive"},"dependencies":{"requireindex":"~1.2.0"},"devDependencies":{"eslint":"~4.18.2","mocha":"^6.2.2"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"b94149672749c7dc638d76ffedaa7c3f68bc8362","_id":"eslint-plugin-use-effect-no-deps@1.0.0","_nodeVersion":"8.12.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-c6ZPG8lrhwtah+7L2zXQ1Y1tTiGJ+8rpTqX56A6UdjvSrbiREcunFbSsRpjojnODU/ajZuZSe2TkerSgL0YBEw==","shasum":"acddbeba7ce4aa32a8e8c46a8050d8d2b042ee3a","tarball":"https://registry.npmjs.org/eslint-plugin-use-effect-no-deps/-/eslint-plugin-use-effect-no-deps-1.0.0.tgz","fileCount":7,"unpackedSize":7678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1G+HCRA9TVsSAnZWagAAyg0P+wemNS9Xq8x9umWrsfrR\nDuQfGOPOqAXeUDOBveZjltiYPByqqKlIJh0OLpKXiWjPTCzYpnkwsw69qInL\n0dRx+6nf9sgD3NrzzW2pSufK0lJwwmKyGdrdGALuS/VtU9/K2Em9EgjQupZL\nDWYjoUbbzPTCnSwpZ33mk2NTnJ/gs4ZsYi40GtiOL6CMCuCb5P7v7wjWu99j\nEl54mn0//XOumWJ7BKn3V3DQ7sF0vQihsdLlvu4XoDRipiOpBjBL12SKidhj\niyiyAglb5xOtxY0WdmbNoFRdB6PW16QcZOhcQ2j7P5fuZPTQu19s0E9DmY2w\nTdQYAQqjFd/M0Me2uTiMRPipGg9Xp5PUsHUU1g2/ASAQ0zZ8tl6/ceLoTaLo\nOrWpLoCiSpLDY6GmVp1/aseS3XVANQqIbzZ0QgpmmNzTXCgTmWvaReQGOPwb\njt5biOquq1+ulvaYFBvJnOaixmD36U2u4MmzVIowIlhUct6oiPv9lYRchqQy\nIuuhAltOZVQzUA7LLaQwLB7RygUuY3iB9AaWyzgCc7odVvMHuR3XsGqJss0K\nofmuwkbf1dEFkoC4xgWHT0fSIug6hVbSdoWg4beblY+OiOxXMxA+qLqesiqn\naZqBoBGnzIjwe3UZMpDXrHNss/tq+fG7mzHYBTzpCbQDiRtMYsLRgB+5laoQ\n3Rnu\r\n=9BEW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvrrC/GhAbNM1YuwnJ1NztBME8kGi3yP+VBBRvbn2i+QIgZnrFeEj1YoGvamZNyMk7hsr/qU3PZQA3qrtB1lBxwbA="}]},"maintainers":[{"name":"alxhenry","email":"zaber123@gmail.com"}],"_npmUser":{"name":"alxhenry","email":"zaber123@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-use-effect-no-deps_1.0.0_1574203270762_0.6549456561362217"},"_hasShrinkwrap":false},"1.1.0":{"name":"eslint-plugin-use-effect-no-deps","version":"1.1.0","description":"Warns a user when the react hook useEffect is called with no dependency array","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alex Henry"},"main":"lib/index.js","scripts":{"test":"mocha tests --recursive"},"dependencies":{"requireindex":"~1.2.0"},"devDependencies":{"eslint":"~4.18.2","mocha":"^6.2.2"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"fe89c84718dea31e2f87d8decb60f9f5cf6993f0","_id":"eslint-plugin-use-effect-no-deps@1.1.0","_nodeVersion":"8.12.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-lWdOunIkututJRxiGYRLD7hgT51+I0tgGPVAadZwo1PdzUjNOBvfA6I6s/EqxuCIYwyAGQ0ffa0s0OmVNsmjHA==","shasum":"25a99a1f1d911b82473d2d43a45810e705155675","tarball":"https://registry.npmjs.org/eslint-plugin-use-effect-no-deps/-/eslint-plugin-use-effect-no-deps-1.1.0.tgz","fileCount":5,"unpackedSize":5864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1HCrCRA9TVsSAnZWagAADssP/j2aslzGAEZgOvYTlnL0\n2WXorq037r0WDd9JZ1BHyD0fQznASlkWARTsMaROLshRsjckHLK1NgZ85ZdE\n4QE1CTVQt+JtLuD7tJJlMHjE8kKvkgpKDB98siSbr6sYHC/dB1/2Y1F4zPQo\nySGXFnzgzJOay5bLeEa29Szcuz7cInDMELHUksy4jcQhOko/zELUebqrdZN+\nQAZUD0dGYKKklu/mgiAtfRJjSf1LfoiSmTEEXEUTndozZnbuMFAg6/+KxVTu\nKM4N3CIUC9wMnHgbGRfNH8WZqLOiiMoKUk5QUdd/JtPRejKqCYZAXV0+oYhk\nA+DMIePxDUH3FkhAKcGozyNHzNAp0EVzNlmj4/JnuqbLv7mPjlgFUsLbW6LM\n1tlvH7Ji8NYRjLb53Ca1xLlw568O0Xc7IEpQHBB95pdvUnnCnfJN8x5lsJZi\nGxxTyV3ZPhciw8RV4Ki6bXbu/t2Cm8Ilt5Crcuwam6fswqADNZj/n3mOPYt8\nJh8h0QKH+iFNL4RWN6U77rcLewNl8o+McMBF+oFaLfasUJ5XgaKhUurpBN5a\nNHK1FZb7QM+EvReCoLrYZQfysWySUCwvvGifD+rlExxTrr8d5hdVAIqkjOWk\nCWNAxD+tNt5ZNInJ9UQVsH2lmtMaRqTg8vo27SBWdYMFgTKF/PU1l4+Y5pn6\nmaoZ\r\n=88B6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEVRw2cAJde4EujyMfX0NovAkbTibWWsx+23eHNIG/xAiEArKf/P3oblLWe0cLlY3lw6Sifyni4T4m2JBko3qj47qM="}]},"maintainers":[{"name":"alxhenry","email":"zaber123@gmail.com"}],"_npmUser":{"name":"alxhenry","email":"zaber123@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-use-effect-no-deps_1.1.0_1574203563457_0.16522775842909043"},"_hasShrinkwrap":false},"1.1.2":{"name":"eslint-plugin-use-effect-no-deps","version":"1.1.2","description":"Warns a user when the react hook useEffect is called with no dependency array","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alex Henry"},"main":"lib/index.js","scripts":{"test":"mocha tests --recursive"},"dependencies":{"requireindex":"~1.2.0"},"devDependencies":{"eslint":"~4.18.2","mocha":"^6.2.2"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"c5a5ed987ddbf6b25c68e7a04cbb5d101c16b097","_id":"eslint-plugin-use-effect-no-deps@1.1.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-ohYM9EGcvlOtSsjyPw+7ktgDD0IAboijRyPH6SrQLZejaapCrO6TY40glYnPUteBA1lTkY34puE6FwKChO8EAA==","shasum":"7a93339d7e77847163e250b6d25dc34cc187cf48","tarball":"https://registry.npmjs.org/eslint-plugin-use-effect-no-deps/-/eslint-plugin-use-effect-no-deps-1.1.2.tgz","fileCount":5,"unpackedSize":6198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd12HGCRA9TVsSAnZWagAAbiwP+wXNHB5E08822rEuqYTv\nHuejLryIfouoOa353V+FSmGAnGXq9H6CCfaIAaypjQV7KUHaVinU6KiSg4Pn\np9QWN/wTdZxiG7yc1I++xZPdzKiOLJywZW6rwnogy+cc7fr9Heww5wAyavP7\nud8xKYHssEC4Tik7WfttaObqg5axynpisP1ypk/dncNvGP6UV37vaBkZBLNH\n+FxrPUd3QeKkIjNFnJgeXOQC2AGpiPnmuJFiguyPEekGa5C5xl7Fn+zeXvKr\nCKcu3V+oIXyTK1U7TQNGFvxyV1yMvXuzy4r0bzcxLsmT+0AthrjtRqgdDw7m\nG521M35MYjW8C42uS1+P/KdH3OYhs5FiesOxYWfXU9oTIiCXyaPqykWKFWxj\n5lRKpYavwu9GqQSfbqUPfcu3S8NpCyHk2JJ2vF7CaxbYVSkzjyH4mimKVeA+\nIUoXnm5fVPPv6LsUcpn8wswTuV+DmMvKfgV5c9DvhG37/EfFrz9Q2a1Wj9Hq\nJUk8DWFgNTCiZ06G/AkzOIOyOAfbpaOw7X8xq8+jNzqf3tGFn2QwbQbHf4Yq\na44xoKWMOl4sBFQMqWRaFeoXDtlJTbG1oYFzFGFrsTFO/kcfVL1WEAoHQNSo\nUfUJli8hCqYcHIA5fUasxkH+sActER83HliSfYeZfv3LyVEvxMMG//JYtJus\nixVI\r\n=H0PI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGagzujJzH9vIwdVh2knGAedbldZhhh1awKQ1iQfnO/AAiEAigQrkkMu5eF17YKtkE7i/P4SS06DX38QcnBDvAK8t1o="}]},"maintainers":[{"name":"alxhenry","email":"zaber123@gmail.com"}],"_npmUser":{"name":"alxhenry","email":"zaber123@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-use-effect-no-deps_1.1.2_1574396357321_0.8477943024163717"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-19T22:17:16.170Z","0.0.0":"2019-11-19T22:17:16.309Z","modified":"2022-05-01T17:07:20.165Z","1.0.0":"2019-11-19T22:41:10.859Z","1.1.0":"2019-11-19T22:46:03.591Z","1.1.2":"2019-11-22T04:19:17.581Z"},"maintainers":[{"name":"alxhenry","email":"zaber123@gmail.com"}],"description":"Warns a user when the react hook useEffect is called with no dependency array","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Alex Henry"},"license":"MIT","readme":"# eslint-plugin-use-effect-no-deps\n\nWarns a user when the react hook useEffect is called with no dependency array.\n\nMy team found that we rarely needed the behavior of useEffect without a dependency array as the second argument. Among the 60 usages of useEffect in our codebase, none needed the effect to run on every render of the component. This rule makes an author ensure that the behavior of useEffect with one argument is what they intended.\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-use-effect-no-deps`:\n\n```\n$ npm install eslint-plugin-use-effect-no-deps --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-use-effect-no-deps` globally.\n\n## Usage\n\nAdd `use-effect-no-deps` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"use-effect-no-deps\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"use-effect-no-deps/use-effect-no-deps\": \"warn\"\n    }\n}\n```\n\n## Supported Rules\n\n* use-effect-no-deps\n\n## Attributions\n\nThe code for this rule is based on the exhaustive-deps rule that Facebook publishes under the MIT License. You can find\nthe source code for that rule here: https://github.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js\n\n\n\n\n\n","readmeFilename":"README.md"}