{"name":"eslint-plugin-depend","version":"0.11.0","keywords":["eslint","optimize","optimise","clutter","cleanup","package"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"eslint-plugin-depend@0.11.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":"ef82f6d8c6ae924a42c489dd6bd5b9f3f4eeba82","tarball":"http://registry-npm.ywwl.com/eslint-plugin-depend/download/eslint-plugin-depend-0.11.0.tgz","fileCount":17,"integrity":"sha512-IwF06BrcdYoELuFd18sdVHhvDfF23xbr8pG/ONqrwB4gXjJ7281mEDEmACKWyvMY63afph8+2aOLbeuvr9mbdg==","signatures":[{"sig":"MEQCIEkBB2gHhglfH5eeNYUVyHqHlAk4C+Fbj1aKZBZHn5fZAiAijOSOPWxYiesY8HfL7GKn49FZB8WYODIe5HRfdPRc9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-depend@0.11.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20626,"size":5633,"noattachment":false,"key":"/eslint-plugin-depend/-/eslint-plugin-depend-0.11.0.tgz"},"main":"lib/main.js","types":"./lib/main.d.ts","gitHead":"44abac17c08647d06b077e59885ff8ba96b1bc93","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.8.2","description":"An ESLint plugin to suggest optimized dependencies, native alternatives and more","directories":{},"_nodeVersion":"22.7.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_0.11.0_1724505154815_0.5108682676601679","host":"s3://npm-registry-packages"},"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":1724505155032,"_cnpm_publish_time":1724505155032,"dist-tags":{"latest":"1.5.0","next":"1.3.0-alpha.0"}}