{"name":"eslint-plugin-depend","version":"1.0.0-esm","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-esm","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":"1aaa69f3113560d43ac108939b0b1ee36b079dcf","tarball":"http://registry-npm.ywwl.com/eslint-plugin-depend/download/eslint-plugin-depend-1.0.0-esm.tgz","fileCount":17,"integrity":"sha512-0d1sk3OnwG306922RSgVI486vgAihCLxTCB8wwE9qUVpfzQ8og50ykLh0Uq6iyALGERvqY02Gl+vgR9fmmrMEA==","signatures":[{"sig":"MEYCIQC/RQREZa7tK3lm7zs/6pSwqZdWwwyP+WvvN+RZ91WJfAIhANVddGPQBeXNN0WFdO7g4IhRuuoARX5j4FQXl5NU93ll","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-depend@1.0.0-esm","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":19646,"size":5511,"noattachment":false,"key":"/eslint-plugin-depend/-/eslint-plugin-depend-1.0.0-esm.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,"readmeFilename":"README.md","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-esm_1744190636131_0.9576291469773959","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":1744190636386,"_cnpm_publish_time":1744190636386,"dist-tags":{"latest":"1.5.0","next":"1.3.0-alpha.0"}}