{"name":"eslint-plugin-depend","version":"1.0.0","keywords":["eslint","optimize","optimise","clutter","cleanup","package"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"eslint-plugin-depend@1.0.0","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/es-tooling/eslint-plugin-depend#readme","bugs":{"url":"https://github.com/es-tooling/eslint-plugin-depend/issues"},"dist":{"shasum":"1f98ae2b48e64319ce5798835d4a6797fae11494","tarball":"http://registry-npm.ywwl.com/eslint-plugin-depend/download/eslint-plugin-depend-1.0.0.tgz","fileCount":17,"integrity":"sha512-w49fVwN3mhkqEfUXdguy6cTrPvj18PtsIq1tcqtGlHBWv7OPz2w8ogzQCiiKDRrN5VDb9B0K2zSw/P/Cm4GNkw==","signatures":[{"sig":"MEYCIQDUZxZImmpRZR8zgWdVI3jYTae8mmELhCY9WZsuBZo1bQIhAJM0MonCKHPEdFA73y6QcoVNWjC/KOqfpgrT4jlYng6g","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-depend@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":19642,"size":5505,"noattachment":false,"key":"/eslint-plugin-depend/-/eslint-plugin-depend-1.0.0.tgz"},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"6985c03a59f23230949a2307b33d48e281937046","scripts":{"lint":"eslint src","test":"npm run build:js && npm run clean:test && c8 node --test","build":"npm run lint && npm run build:js","format":"prettier --write src","build:js":"npm run clean:build && tsc","clean:test":"premove coverage","clean:build":"premove lib","prepublishOnly":"npm run test"},"_npmUser":{"name":"43081j","email":"43081james@gmail.com"},"repository":{"url":"git+https://github.com/es-tooling/eslint-plugin-depend.git","type":"git"},"_npmVersion":"10.9.2","description":"An ESLint plugin to suggest optimized dependencies, native alternatives and more","directories":{},"_nodeVersion":"22.14.0","dependencies":{"semver":"^7.6.3","fd-package-json":"^1.2.0","module-replacements":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","eslint":"^9.9.0","premove":"^4.0.0","prettier":"^3.3.3","@eslint/js":"^9.9.0","typescript":"^5.5.4","@types/node":"^22.2.0","@types/eslint":"^9.6.0","@types/estree":"^1.0.5","@types/semver":"^7.5.8","typescript-eslint":"^8.0.1","jsonc-eslint-parser":"^2.4.0","eslint-plugin-eslint-plugin":"^6.2.0","@typescript-eslint/typescript-estree":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-depend_1.0.0_1744196664926_0.5392070171747911","host":"s3://npm-registry-packages-npm-production"},"readme":"# eslint-plugin-depend\n\nThis is an ESLint plugin to help suggest alternatives to various dependencies.\n\nPrimarily, it will help detect dependency tree bloat and redundant\npolyfills.\n\n## Install\n\n```sh\nnpm i -D eslint-plugin-depend\n```\n\n## Usage\n\nIf you're using the new flat config files, add to your `eslint.config.js`:\n\n```ts\nimport depend from 'eslint-plugin-depend';\nimport {defineConfig} from 'eslint/config';\n\nexport default defineConfig([\n  {\n    files: ['**/*.js'],\n    plugins: {\n      depend\n    },\n    extends: ['depend/flat/recommended'],\n  }\n]);\n```\n\nFor older legacy projects, add to your `.eslintrc.json`:\n\n```json\n{\n  \"extends\": [\n    \"plugin:depend/recommended\"\n  ]\n}\n```\n\n### With `package.json`\n\nSome rules (e.g. `ban-dependencies`) can be used against your `package.json`.\n\nYou can achieve this by using `@eslint/json` or `jsonc-eslint-parser`.\n\nFor example, with `@eslint/json` and `eslint.config.js`:\n\n```ts\nimport depend from 'eslint-plugin-depend';\nimport json from '@eslint/json';\nimport {defineConfig} from 'eslint/config';\n\nexport default defineConfig([\n  {\n    files: ['package.json'],\n    language: 'json/json',\n    plugins: {\n      depend,\n      json\n    },\n    extends: ['depend/flat/recommended'],\n  }\n]);\n```\n\nOr with `jsonc-eslint-parser` and `.eslintrc.json`:\n\n```json\n{\n  \"overrides\": [\n    {\n      \"files\": [\"package.json\"],\n      \"parser\": \"jsonc-eslint-parser\",\n      \"plugins\": [\"depend\"],\n      \"rules\": {\n        \"depend/ban-dependencies\": \"error\"\n      }\n    }\n  ]\n}\n```\n\nRead more at the\n[`@eslint/json` docs](https://github.com/eslint/json) and\n[`jsonc-eslint-parser` docs](https://github.com/ota-meshi/jsonc-eslint-parser).\n\n## Rules\n\n- [`depend/ban-dependencies`](./docs/rules/ban-dependencies.md)\n\n## License\n\nMIT\n","publish_time":1744196665087,"_cnpm_publish_time":1744196665087,"dist-tags":{"latest":"1.5.0","next":"1.3.0-alpha.0"}}