{"_id":"@agrovista/eslint-plugin-eslint-rules","_rev":"2-20f0ce880c5a4da1085e3f5d3af55df2","name":"@agrovista/eslint-plugin-eslint-rules","dist-tags":{"latest":"1.6.0"},"versions":{"1.4.0":{"name":"@agrovista/eslint-plugin-eslint-rules","version":"1.4.0","description":"A collection of eslint rules used for Agrovista applications","main":"index.js","repository":{"type":"git","url":"https://bitbucket.org/agrovista/eslint-plugin-eslint-rules/src/master/"},"license":"UNLICENSED","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Agrovista"},"dependencies":{"requireindex":"^1.2.0"},"_id":"@agrovista/eslint-plugin-eslint-rules@1.4.0","dist":{"shasum":"14b8aa276c393c292c83c702d9ee70fc5dee757f","integrity":"sha512-gCrdeD4pUZeCo19Cw00pyTjqrs5Q+aWogGlW448BZBxEkdkMG/Zac/m3cKxCQ4WV6e7K186efCH74PJHHMO39g==","tarball":"https://registry.npmjs.org/@agrovista/eslint-plugin-eslint-rules/-/eslint-plugin-eslint-rules-1.4.0.tgz","fileCount":8,"unpackedSize":6100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfGv+qttH2JvuIbOP3lnM/MXQX9PUqddGO5t6P/rmBLAiB4W1r+BecFgWv8fpKXEKZsBGlBpS/VQ387EBLCGxHYLQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRAs/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprEQ//WP5l0EkTcBdB2uC7z507OPXa8yh3RFBeMw56SQTGuumJCcH6\r\nVNBOsbUNqgublx0TwOLb8/7s8OPF2G+Un7s7CJPio20aLpcZzR2TnuwIr//9\r\nb3eJw+sZahBen4GZO8b0vEvgVtN/E6qPG/gwgfnd5IFeMsO5dhnBowR+Vv6M\r\nzLApwV8tLUujZ0fEFIGuRHORi8V9qNYgKkmm0WyWVN3U4DDK3ELFiqI9xy+n\r\nNxwKWVo946Qj3ciGSTq9nQfshW0tmJVQDfkBEyD+WVeaFSBCV+cd5JLkz5y9\r\n/ATn9eAAnz9OLtgrsPSRaT2sK0GEPD3PV50P4MHFTnFAa8T45izQu3Pd6GBv\r\nBLfxikN2/TPf444kj1NCm2WqSfAzGS7xNcQFjnJLy+srj9E/oMpOpxDZ7YiH\r\n6fKPrjddjQV5aS7V2kXldQtwVHZSnosSuTmrdoGkzaKRzBak+Ekw8LtUYV4L\r\nXdpEQAsRTGu9FKqYJFWsFQPsJxc1yi2jUWNyAR/EsxiKJ12F9gPohvHTmUuy\r\nQ6j4IoSzH97kx/3jJ942RYC3moL454ylatx+CkRbkx3Iz94RwFiZ3GmQRcK0\r\n4kpGI7hLPpbgCdckemiT7CIhK88CTP+dysK5WeErHoEeV6mjm0zvIdxTrCQd\r\n/6MhuLWxxB2sm3b/pdfJ8AGIZMLk0+ACg7U=\r\n=5YHl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},"directories":{},"maintainers":[{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},{"name":"bobbypiper-agrovista","email":"bobby.piper@agrovista.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-eslint-rules_1.4.0_1665403711287_0.2505993629433785"},"_hasShrinkwrap":false},"1.5.0":{"name":"@agrovista/eslint-plugin-eslint-rules","version":"1.5.0","description":"A collection of eslint rules used for Agrovista applications","main":"index.js","repository":{"type":"git","url":"https://bitbucket.org/agrovista/eslint-plugin-eslint-rules/src/master/"},"license":"UNLICENSED","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Agrovista"},"dependencies":{"requireindex":"^1.2.0"},"_id":"@agrovista/eslint-plugin-eslint-rules@1.5.0","dist":{"shasum":"a39bb242dbf1fef839c943a29c170ad176c6e413","integrity":"sha512-4QcsL1GMpWo0GNINIgSJZKkN3BCdaNahrt7TB2LeB2lFja2vfz+TC8mymX6yjlYbmGLyg89MgVBZEaG4IfoYwg==","tarball":"https://registry.npmjs.org/@agrovista/eslint-plugin-eslint-rules/-/eslint-plugin-eslint-rules-1.5.0.tgz","fileCount":8,"unpackedSize":6035,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxedTqtDzN9t+U+NOyU0m0sN1w3r+CZGadOGJKQenM7QIgZH6umV6eBlKcrjEIxsgox8rW6f2s6+gukWE/y/AN3dY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRSKBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoj5hAAmTDHTT44Fd7f2gnxbLORc8Guj5+2PdOnAQXag3Ev8Sp6xBPQ\r\nXhxdcCBYLLr1vJbAKywtjMxqXz6vqQU5y2bq+K0/3Ts1LNeYGZNRuA7y47Uh\r\nbX4lMnNK9bZ4T81rvCPSbBjBLMXIylARChOG7twWSY5onUOXfEU1SN44dw0j\r\n0axfvJqoOb/QSFFmtOBKpI1mAOOzM78kTlNHo5hkuRQFkkuyvtbDwyKoG7pY\r\nDT59Gz+oexP5eantVfhtyHnNXH+hkHvenYlOo+ZCVJ+o0jxV4AcnfPv9slyD\r\neXBSCV3YfbM4UL6mJ6Cagb2lxfIjQ/zxYNqCndzrWUoM9ZvBX4S2FS/ceP4R\r\nPvVYEuwVJAhxgZchRVXW7OaqYvd7iJ4KVaTN+Q1erhND49sdZduCW7X4/YRz\r\nLmG6aFatwaYgKJJMfBgOP3YrFNQAekrfvFAYPGVBIjG2prPbxSxmvO+UhykU\r\nS74SRM0lxorLZ6c6dLSKBaRtDDxNTya4fQVgtwwGKyjnepUam5VRFHjd3XH3\r\nKpw+0eVX3tNRsdt4jCLR9Z0yll2RL35yl+k4IEJlZ8AmQEmO0O7hwFQaZvnj\r\n++TLjWl2UjoACxytHpNJ859euX14Gfs/C7TWrModgZ45+nPtm5U4drC+JJCz\r\ngOgwOPNgGjsWuLQmoJnIzAav9ULvBcV6LyA=\r\n=P1WM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},"directories":{},"maintainers":[{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},{"name":"bobbypiper-agrovista","email":"bobby.piper@agrovista.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-eslint-rules_1.5.0_1665475201260_0.8858259389938063"},"_hasShrinkwrap":false},"1.6.0":{"name":"@agrovista/eslint-plugin-eslint-rules","version":"1.6.0","description":"A collection of eslint rules used for Agrovista applications","main":"index.js","repository":{"type":"git","url":"https://bitbucket.org/agrovista/eslint-plugin-eslint-rules/src/master/"},"license":"UNLICENSED","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Agrovista"},"dependencies":{"requireindex":"^1.2.0"},"_id":"@agrovista/eslint-plugin-eslint-rules@1.6.0","dist":{"shasum":"4144e9a14446c5cd1543d05dd03f9fdd5ff62d1b","integrity":"sha512-GzSjMKI7jO7eT0QURD0ZdnPaCRTVMp5eq2dxUeiA4PXMY+hy+hNdbVbaFLd0v1CeiFQ9OYdKZzV4wtVPol8yng==","tarball":"https://registry.npmjs.org/@agrovista/eslint-plugin-eslint-rules/-/eslint-plugin-eslint-rules-1.6.0.tgz","fileCount":8,"unpackedSize":6035,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARzBufSDgmOdHrvO24MeZP/+DBV32eJjskI0zbnZEcYAiAuM9VuzdIifJhYpnKAWxjnTdUjeGOASKZ3OEEYOEVeuQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRSMxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJ+A//e7RvVu7F6RvJI6CipNo6r/jjmbJ5HH6SwFhKBsXAKcflKi9o\r\njcIQ1K8aL1ZXR5l91gNjnu7sRAOWXo46OfcpiVACNqZyBmqsoOdg/60nuU4U\r\nN1QVzUjb9+NWJLtukjzx9s8+aS7N/qEb/6lf31fxQnSh9CQ1GcSCDKSv9x4N\r\nn40f7Uewws0K5w+Ho7GnoGw9LiWWVn+XH2s8y6piUzPb/HwHiKxDmPgiTsvn\r\n7ylCW5zRW2Rvo/u8AYcqwXNmQpezMmM572kIwGACs9PA8C2sXCv9sZ+2OtvF\r\n75MBWf6ONDZhY+XLn/y+s7nHT0BDJfnioGT7BatJTNXUtHoxKa292gKGPukv\r\nz0Yy9IShxHIiUkaHMjqjXc54SFD3UGk0nJpB+OXLHh8qeI32tUo+yfYXYnGA\r\nWHdCLTGoEHFwU24vvLut+j3gERW2Z41oSrHjeLM6oOocwkBth3erhU6aZi95\r\n821x7U9WvtWVE1V1+5DWlSlpCc7nsl5Hm1kklk0vq2FuPkDpSxSw+eqR0MWr\r\nm6sfVOwyqYScEV1hCSSw0Bp24wOqWoSXVVZa5UDJad7iU68p4XWeAj5Zh+wr\r\nOVRe6I0hLmbnrtPFXk0K4uWKaVGl16COi7YULepdEKL9DtHfMLXXfudgfzYi\r\nQAdsyFrmsu3pkOxz/HpEK5aX57B9c+domDU=\r\n=aUPx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},"directories":{},"maintainers":[{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},{"name":"bobbypiper-agrovista","email":"bobby.piper@agrovista.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-eslint-rules_1.6.0_1665475377367_0.5794204746096934"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-10T12:08:31.212Z","1.4.0":"2022-10-10T12:08:31.457Z","modified":"2022-10-11T08:02:57.649Z","1.5.0":"2022-10-11T08:00:01.527Z","1.6.0":"2022-10-11T08:02:57.541Z"},"maintainers":[{"name":"natalie-agrovista","email":"natalie.davies@agrovista.co.uk"},{"name":"bobbypiper-agrovista","email":"bobby.piper@agrovista.co.uk"}],"description":"A collection of eslint rules used for Agrovista applications","repository":{"type":"git","url":"https://bitbucket.org/agrovista/eslint-plugin-eslint-rules/src/master/"},"author":{"name":"Agrovista"},"license":"UNLICENSED","readme":"# Agrovista Eslint Rules\n\nA collection of custom ESLint rules used by the Agrovista development team.\nThese are likely to be integrated with our custom eslint-config described [here](https://bitbucket.org/agrovista/eslint-config/src).\n\n## Installation\n\nInstall eslint and rules\n\n```sh\n$ yarn add -D eslint @agrovista/eslint-plugin-eslint-rules\n```\n\n# Rules\n\n## No relative import paths\n\nMoving a file to different folder, could result in changing all imports statement in that file. This will not happen is the import paths are absolute. The eslint rule helps enforcing having absolute import paths.\nSupport eslint --fix to automatically change imports to absolute paths.\n\n#### Configuration\n\nAdd the plugin to the plugins section, and configure the rule options.\n\n```json\n{\n  \"plugins\": [\"@agrovista/eslint-rules\"],\n  \"rules\": {\n    \"@agrovista/eslint-rules/no-relative-import-paths\": [\n      \"warn\",\n      { \"allowSameFolder\": true }\n    ]\n  }\n}\n```\n\n#### Rule options\n\n```json\n\"@agrovista/eslint-rules/no-relative-import-paths\": [\n  \"warn\",\n  { \"allowSameFolder\": true, \"rootDir\": \"src\", \"prefix\": \"\" }\n]\n```\n\n- `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.\n- `ignorePureComponents`: optional boolean set to `true` to allow relative import paths for imported files from the same folder (default to `false`).\n\n##### `allowSameFolder`\n\nWhen `true` the rule will ignore relative import paths for imported files from the same folder\n\nExamples of code for this rule:\n\n```js\n// when true this will be ignored\n// when false this will generate a warning\nimport Something from \"./something\";\n\n// will always generate a warning\nimport Something from \"../modules/something\";\n```\n\n##### `rootDir`\n\nUseful when auto-fixing and the rootDir should not be included in the absolute path.\n\nExamples of code for this rule:\n\n```js\n// when not configured:\nimport Something from \"../../components/something\";\n\n// will result in\nimport Something from \"src/components/something\";\n```\n\n```js\n// when configured as { \"rootDir\": \"src\" }\nimport Something from \"../../components/something\";\n\n// will result in\nimport Something from \"components/something\";\n//                     ^- no 'src/' prefix is added\n```\n\n##### `prefix`\n\nUseful when auto-fixing and a prefix should be included in the absolute path.\n\nExamples of code for this rule:\n\n```js\n// when not configured:\nimport Something from \"../../components/something\";\n// will result in\nimport Something from \"src/components/something\";\n```\n\n```js\n// when configured as { \"prefix\": \"@\" }\nimport Something from \"../../components/something\";\n// will result in\nimport Something from \"@/components/something\";\n```\n","readmeFilename":"README.md"}