{"name":"eslint-plugin-depend","version":"0.3.0","keywords":["eslint","optimize","optimise","clutter","cleanup","package"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"eslint-plugin-depend@0.3.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":"d6b0c4f2b2aacaff87b01f66d3aa6d33c5f77182","tarball":"http://registry-npm.ywwl.com/eslint-plugin-depend/download/eslint-plugin-depend-0.3.0.tgz","fileCount":17,"integrity":"sha512-endNy1MymjqoTftlnFAwiO6NSspYooZfllYLGAquMQfuCcqqxUAE9leRJPwFtIbhwzGqv+Vv4kik97vci2Zpig==","signatures":[{"sig":"MEYCIQCQKy8AH6QBJM7QHACbERq6bKt+v9Lm7HVhjsz+52FrpQIhALDBDiDSKHYYNufS4g3gAZjnlURs6YjeCpjTGx6oJLvy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28147,"size":6657,"noattachment":false,"key":"/eslint-plugin-depend/-/eslint-plugin-depend-0.3.0.tgz"},"main":"lib/main.js","types":"./lib/main.d.ts","gitHead":"2da9fdf1e49329434fbb94f53c43d2eb6883e853","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":"rimraf coverage","clean:build":"rimraf 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.2.4","description":"An ESLint plugin to suggest optimized dependencies, native alternatives and more","directories":{},"_nodeVersion":"21.6.1","dependencies":{"semver":"^7.6.0","fd-package-json":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","eslint":"^8.56.0","rimraf":"^5.0.5","prettier":"^3.2.5","@eslint/js":"^8.56.0","typescript":"^5.3.3","@types/node":"^20.11.19","@types/eslint":"^8.56.5","@types/estree":"^1.0.5","@types/semver":"^7.5.8","typescript-eslint":"^7.0.2","jsonc-eslint-parser":"^2.4.0","eslint-config-google":"^0.14.0","eslint-plugin-eslint-plugin":"^5.3.0","@typescript-eslint/typescript-estree":"^7.1.1"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-depend_0.3.0_1710090261575_0.04797463309074157","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":1710090261729,"_cnpm_publish_time":1710090261729,"dist-tags":{"latest":"1.5.0","next":"1.3.0-alpha.0"}}