{"_id":"@-k/eslint-plugin-dependencies","_rev":"2-64e28b20edd08c885e2c5ecb57e1b1ce","name":"@-k/eslint-plugin-dependencies","dist-tags":{"latest":"2.4.0"},"versions":{"2.4.0":{"name":"@-k/eslint-plugin-dependencies","version":"2.4.0","description":"require/import dependency validation","keywords":["eslint","eslint-plugin","eslintplugin","import","require"],"license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/AdrieanKhisbe/eslint-plugin-dependencies.git"},"scripts":{"test":"find test -name '*-test.js' -print0 | xargs -n 1 -0 node"},"dependencies":{"commondir":"^1.0.1","resolve":"^1.1.6"},"devDependencies":{"babel-eslint":"^6.0.4","eslint":"^2.9.0"},"gitHead":"5652734f651c900c281aadb9996d1714439ec729","bugs":{"url":"https://github.com/AdrieanKhisbe/eslint-plugin-dependencies/issues"},"homepage":"https://github.com/AdrieanKhisbe/eslint-plugin-dependencies#readme","_id":"@-k/eslint-plugin-dependencies@2.4.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-CMhT167VCRAxSWeFUtBs3KC7/AMG1IBzSOEED/7FIGkxSiBAzZTRQzf52skpIlJ6x97LgyMKuumDZfSjVWagLA==","shasum":"2834d14cc60e25689b47b1417bb566af449c0816","tarball":"https://registry.npmjs.org/@-k/eslint-plugin-dependencies/-/eslint-plugin-dependencies-2.4.0.tgz","fileCount":8,"unpackedSize":20057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdn7dSCRA9TVsSAnZWagAAqV0P/2c5tc5QlO9n0puOvHJx\nvnO/qIRXHS7iuj69mwR6orrRai4uUZ+YWMZv++YmXNlTAyvLhszPbrVxeYsm\neSLY1WIpXdUb36AdhPXqZlV57sH4QY+TIbU569eLxzcTTjxJolu1tgWzyLE6\nZ1J1jcfmgKWX/140ayv6cV5amVf/kj045UuaYPVVyebBLF8E+YaYgNsNZcLM\ndtJ/vu/rpLyn6IKazaFJrglYkuGJ5/pyjvSZ7UZrBMNCut7EHCzRxIPrlBNr\nKMCTQeYl2KtcnOHcOSblA/+nU0y+czDiYzDMjGVEHTxnktffA+NUyy7X9n3E\nH7OMiz46OpHuE2DzGpsP2ElnuyUjqtDRHp4jwUBOubEvyhzQsoAApVVJVbwz\neNXLzAqr9Hw4MySPc3EIlcCup3jqaGAjIquGmRdR3vdLqCefpY0hByQ34/d7\nEPH03we/LxGAItqjezWC5x2XeL/4uxTRh+1Zmj9DFoqpd07gR7W8zZE3sOW5\nW44DZo+CmOEBEA7UQ1sCEMSnulKuiQKx3a3Jg3eXeCTA1fwfAWLbmOEOHpAm\n7FIJiYxLqm2gEXxAghfcES3olGIexNkn0zJHMtE87q9Vcrk2BdKpaaRqwAgy\nqdyJL0ufdJt4uRKutPKrYhOrIC16OWOo7Fs3YSN/dwKDgwF6dHgrKIftURLp\ngDZs\r\n=QAs2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuiS65qQEN2ejb3ryT44V4FaBOpAlFtKxuyONFvb5c7QIhAKmCSJjsC9GmSu6P0ftaCSeLQRa5eCzbrWvm8C6fu9qb"}]},"maintainers":[{"name":"adrieankhisbe","email":"adrien.becchis@live.Fr"},{"name":"adrien.becchis","email":"adrien.becchis@gmail.com"},{"name":"adriean.khisbe","email":"adriean.khisbe@live.fr"}],"_npmUser":{"name":"adrieankhisbe","email":"adrien.becchis@live.Fr"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-dependencies_2.4.0_1570748242125_0.05290542842224788"},"_hasShrinkwrap":false,"deprecated":"Fork cancelled (you should use eslint-plugin-import instead)"}},"time":{"created":"2019-10-10T22:57:21.901Z","2.4.0":"2019-10-10T22:57:22.250Z","modified":"2022-04-04T10:25:34.207Z"},"maintainers":[{"name":"adriean.khisbe","email":"adriean.khisbe@live.fr"},{"name":"adrieankhisbe","email":"adrien.becchis@live.Fr"},{"name":"adrien.becchis","email":"adrien.becchis@gmail.com"}],"description":"require/import dependency validation","homepage":"https://github.com/AdrieanKhisbe/eslint-plugin-dependencies#readme","keywords":["eslint","eslint-plugin","eslintplugin","import","require"],"repository":{"type":"git","url":"git+https://github.com/AdrieanKhisbe/eslint-plugin-dependencies.git"},"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"bugs":{"url":"https://github.com/AdrieanKhisbe/eslint-plugin-dependencies/issues"},"license":"MIT","readme":"# @k/eslint-plugin-dependencies\n\n[![Build Status](https://travis-ci.org/AdrieanKhisbe/eslint-plugin-dependencies.svg?branch=master)](https://travis-ci.org/AdrieanKhisbe/eslint-plugin-dependencies)\n\n:warning: This is a _(temporary)_ fork :warning:\nAim is to have a release that is comptabible with eslint 6 thanks to https://github.com/zertosh/eslint-plugin-dependencies/pull/21/files\n\n\n\n## Usage\n\n```sh\nnpm install eslint-plugin-dependencies\n```\n\nIn your `.eslintrc`:\n\n```json\n{\n  \"plugins\": [\n    \"dependencies\"\n  ],\n  \"rules\": {\n    \"dependencies/case-sensitive\": 1,\n    \"dependencies/no-cycles\": 1,\n    \"dependencies/no-unresolved\": 1,\n    \"dependencies/require-json-ext\": 1\n  }\n}\n```\n\n## Rules\n\nAn [eslint](https://github.com/eslint/eslint) plugin that ...\n\n### `dependencies/case-sensitive`\n\nVerifies that `require(\"…\")`, `require.resolve(…)`, `import \"…\"` and `export … from \"…\"` ids match the case that is reported by a directory listing.\n\n```json\n{\n  \"plugins\": [\n    \"dependencies\"\n  ],\n  \"rules\": {\n    \"dependencies/case-sensitive\": [1, {\"paths\": [\"custom-path-to-search-for-modules\"]}]\n  }\n}\n```\n\n### `dependencies/no-cycles`\n\nPrevents cyclic references between modules. It resolves `require(\"…\")`, `import \"…\"` and `export … from \"…\"` references to internal modules (i.e. not `node_modules`), to determine whether there is a cycle. If you're using a custom parser, the rule will use that to parse the dependencies. The rule takes a `skip` array of strings, that will be treated as regexps to skip checking files.\n\nAdditionally, with the `types` option enabled, you can detect and prevent `import type` cycles as well. This can be helpful, since the [Flow checker](https://flow.org) can exhibit unexpected behavior with such cycles.\n\n```json\n{\n  \"plugins\": [\n    \"dependencies\"\n  ],\n  \"rules\": {\n    \"dependencies/no-cyles\": [1, {\"skip\": [\"/spec/\", \"/vendor/\"], \"types\": true}]\n  }\n}\n```\n\n### `dependencies/no-unresolved`\n\nChecks that `require(\"…\")`, `require.resolve(…)`, `import \"…\"` and `export … from \"…\"` reference modules that exist. Takes an `ignore` array of modules to ignore.\n\n```json\n{\n  \"plugins\": [\n    \"dependencies\"\n  ],\n  \"rules\": {\n    \"dependencies/no-unresolved\": [1, {\"ignore\": [\"atom\"], \"paths\": [\"custom-path-to-search-for-modules\"]}]\n  }\n}\n```\n\n### `dependencies/require-json-ext`\n\nEnsures that modules are that are `.json` include their extension in the module id. Supports auto fix.\n","readmeFilename":"README.md"}