{"name":"eslint-plugin-depend","version":"1.4.0","keywords":["eslint","optimize","optimise","clutter","cleanup","package"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"eslint-plugin-depend@1.4.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":"5971b2b5a5dc10e843dc0576962f8c5fb41f7200","tarball":"http://registry-npm.ywwl.com/eslint-plugin-depend/download/eslint-plugin-depend-1.4.0.tgz","fileCount":17,"integrity":"sha512-MQs+m4nHSfgAO9bJDsBzqw0ofK/AOA0vfeY/6ahofqcUMLeM6/D1sTYs21fOhc17kNU/gn58YCtj20XaAssh2A==","signatures":[{"sig":"MEUCIQC0ljK6SE421CJKJkZsxzZbGD5H2yv7+3td3KqUE42ekAIgfpVQoOaq3jiX4RT6dz7mpzbol4ZSVffuPmM0dbKJnCA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-depend@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21096,"size":5809,"noattachment":false,"key":"/eslint-plugin-depend/-/eslint-plugin-depend-1.4.0.tgz"},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"5f81ab8b0a0a48f2b528dd47a78964e533b5a699","scripts":{"lint":"eslint src","test":"npm run build:js && vitest run","build":"npm run lint && npm run build:js","format":"prettier --write src","build:js":"npm run clean:build && tsc","clean:build":"premove lib","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a94ee093-f91b-49fe-9ad3-9696d57c2c8a"}},"overrides":{"vite":"npm:rolldown-vite@7.0.11"},"repository":{"url":"git+https://github.com/es-tooling/eslint-plugin-depend.git","type":"git"},"_npmVersion":"11.6.2","description":"An ESLint plugin to suggest optimized dependencies, native alternatives and more","directories":{},"_nodeVersion":"22.21.1","dependencies":{"semver":"^7.6.3","empathic":"^2.0.0","module-replacements":"^2.10.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.35.0","vitest":"3.2.4","premove":"^4.0.0","prettier":"^3.3.3","@eslint/js":"^9.35.0","typescript":"5.9.2","@types/node":"^24.4.0","@eslint/json":"^0.13.2","@types/eslint":"^9.6.1","@types/estree":"^1.0.8","@types/semver":"^7.5.8","typescript-eslint":"^8.43.0","@vitest/coverage-v8":"3.2.4","jsonc-eslint-parser":"^2.4.0","@humanwhocodes/momoa":"^3.3.9","eslint-vitest-rule-tester":"2.2.1","eslint-plugin-eslint-plugin":"^6.2.0","@typescript-eslint/typescript-estree":"^8.43.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-depend_1.4.0_1762985765328_0.7794106377060268","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":1762985765554,"_cnpm_publish_time":1762985765554,"dist-tags":{"latest":"1.5.0","next":"1.3.0-alpha.0"}}