{"analyzedAt":"2022-07-10T05:05:11.418Z","collected":{"metadata":{"name":"eslint-plugin-unused-imports","scope":"unscoped","version":"2.0.0","description":"Report and remove unused es6 modules","keywords":["eslint","eslintplugin","eslint-plugin","import","unused","modules","autofix"],"date":"2021-11-10T08:23:05.774Z","author":{"name":"Mikkel Holmer Pedersen"},"publisher":{"username":"sweepline","email":"mikkel@holmerp.dk"},"maintainers":[{"username":"sweepline","email":"mikkel@holmerp.dk"}],"repository":{"type":"git","url":"git+https://github.com/sweepline/eslint-plugin-unused-imports.git"},"links":{"npm":"https://www.npmjs.com/package/eslint-plugin-unused-imports","homepage":"https://github.com/sweepline/eslint-plugin-unused-imports","repository":"https://github.com/sweepline/eslint-plugin-unused-imports","bugs":"https://github.com/sweepline/eslint-plugin-unused-imports/issues"},"license":"MIT","dependencies":{"eslint-rule-composer":"^0.3.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^8.0.1","jest":"^27.2.5"},"peerDependencies":{"@typescript-eslint/eslint-plugin":"^5.0.0","eslint":"^8.0.0"},"releases":[{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":5},{"from":"2020-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":12}],"hasTestScript":true,"readme":"# eslint-plugin-unused-imports\n\nFind and remove unused es6 module imports. It works by splitting up the `no-unused-vars` rule depending on it being an import statement in the AST and providing an autofix rule to remove the nodes if they are imports. This plugin composes the rule `no-unused-vars` of either the typescript or js plugin so be aware that the other plugins needs to be installed and reporting correctly for this to do so.\n\n## _Important for version 1.1_\n\nThe `-ts` rules are deprecated, the package now looks for `@typescript-eslint/eslint-plugin` to exist to decide between the typescript and eslint version.\nThe `-ts` rule will still work, but point to the new rule instead.\n\n## Typescript\n\nIf running typescript with [@typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) make sure to use both `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser`.\n\n## React\n\nIf writing react code you need to install `eslint-plugin-react` and enable the two rules `react/jsx-uses-react` and `react/jsx-uses-vars`. Otherwise all imports for components will be reported unused.\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org) (and [@typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) if using typescript):\n\n```bash\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-unused-imports`:\n\n```bash\nnpm install eslint-plugin-unused-imports --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-unused-imports` globally.\n\n## Usage\n\nAdd `unused-imports` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n\t\"plugins\": [\"unused-imports\"]\n}\n```\n\nThen configure the rules you want to use under the rules section. I can recommend adding a check for underscores, e.g.\n\n```json\n{\n\t\"rules\": {\n\t\t\"no-unused-vars\": \"off\", // or \"@typescript-eslint/no-unused-vars\": \"off\",\n\t\t\"unused-imports/no-unused-imports\": \"error\",\n\t\t\"unused-imports/no-unused-vars\": [\n\t\t\t\"warn\",\n\t\t\t{ \"vars\": \"all\", \"varsIgnorePattern\": \"^_\", \"args\": \"after-used\", \"argsIgnorePattern\": \"^_\" }\n\t\t]\n\t}\n}\n```\n\n## Supported Rules\n\n- `no-unused-imports`\n- `no-unused-vars`"},"npm":{"downloads":[{"from":"2022-07-09T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":21577},{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":676729},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":2889908},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":8439413},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":15617298},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":23672243}],"starsCount":0},"github":{"starsCount":188,"forksCount":9,"subscribersCount":2,"issues":{"count":47,"openCount":1,"distribution":{"3600":5,"10800":1,"32400":2,"97200":5,"291600":6,"874800":5,"2624400":10,"7873200":7,"23619600":6,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"sweepline","commitsCount":33},{"username":"sawa-zen","commitsCount":1},{"username":"patrick-entinux","commitsCount":1},{"username":"bennycode","commitsCount":1},{"username":"c-vetter","commitsCount":1},{"username":"dependabot[bot]","commitsCount":4},{"username":"benkroeger","commitsCount":1},{"username":"raviqqe","commitsCount":1},{"username":"zachkirsch","commitsCount":1},{"username":"Nokel81","commitsCount":1}],"commits":[{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":9}]},"source":{"files":{"readmeSize":2246,"testsSize":1487},"linters":["eslint"]}},"evaluation":{"quality":{"carefulness":0.84,"tests":0.6,"health":1,"branding":0},"popularity":{"communityInterest":209,"downloadsCount":2813137.6666666665,"downloadsAcceleration":13345.52819634703,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":1,"issuesDistribution":0.9}},"score":{"final":0.7267802475016379,"detail":{"quality":0.8262967790528932,"popularity":0.3683542275089704,"maintenance":0.9999063833075152}}}