{"name":"eslint-plugin-depend","version":"1.5.0","description":"An ESLint plugin to suggest optimized dependencies, native alternatives and more","main":"lib/main.js","type":"module","scripts":{"clean:build":"premove lib","build:js":"npm run clean:build && tsc","build":"npm run lint && npm run build:js","lint":"eslint src","format":"prettier --write src","test":"npm run build:js && vitest run","prepublishOnly":"npm run test"},"repository":{"type":"git","url":"git+https://github.com/es-tooling/eslint-plugin-depend.git"},"keywords":["eslint","optimize","optimise","clutter","cleanup","package"],"author":{"name":"James Garbutt","url":"https://github.com/43081j"},"license":"MIT","bugs":{"url":"https://github.com/es-tooling/eslint-plugin-depend/issues"},"homepage":"https://github.com/es-tooling/eslint-plugin-depend#readme","overrides":{"vite":"npm:rolldown-vite@7.0.11"},"peerDependencies":{"eslint":">=8.40.0"},"dependencies":{"empathic":"^2.0.0","module-replacements":"^2.10.1","semver":"^7.6.3"},"devDependencies":{"@eslint/js":"^10.0.1","@eslint/json":"^1.0.1","@humanwhocodes/momoa":"^3.3.9","@types/estree":"^1.0.8","@types/node":"^24.4.0","@types/semver":"^7.5.8","@typescript-eslint/typescript-estree":"^8.43.0","@vitest/coverage-v8":"3.2.4","eslint":"^10.0.1","eslint-plugin-eslint-plugin":"^7.3.1","eslint-vitest-rule-tester":"^3.1.0","jsonc-eslint-parser":"^2.4.0","premove":"^4.0.0","prettier":"^3.3.3","typescript":"5.9.2","typescript-eslint":"^8.56.1","vitest":"3.2.4"},"gitHead":"a5562ddccc96ce3931bb6325c185c92855eabe06","types":"./lib/main.d.ts","_id":"eslint-plugin-depend@1.5.0","_nodeVersion":"22.22.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-i3UeLYmclf1Icp35+6W7CR4Bp2PIpDgBuf/mpmXK5UeLkZlvYJ21VuQKKHHAIBKRTPivPGX/gZl5JGno1o9Y0A==","shasum":"3bed81d2326b0c5a7f40a8146ae6eee8bdd74095","tarball":"http://registry-npm.ywwl.com/eslint-plugin-depend/download/eslint-plugin-depend-1.5.0.tgz","fileCount":17,"unpackedSize":22047,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-depend@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDgSP/hbcKM73r3drfdv4Rm7hiA4kp1sePqmaKBTzaYQAIhANjvltxoawe+tbboNf7DajpGLyf+/bJIusXtHTly0p98"}],"size":6034,"noattachment":false,"key":"/eslint-plugin-depend/-/eslint-plugin-depend-1.5.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a94ee093-f91b-49fe-9ad3-9696d57c2c8a"}},"directories":{},"maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-plugin-depend_1.5.0_1772533054494_0.1394165915737069"},"_hasShrinkwrap":false,"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":1772533054643,"_cnpm_publish_time":1772533054643,"dist-tags":{"latest":"1.5.0","next":"1.3.0-alpha.0"}}