{"id":17242794,"url":"https://github.com/imcuttle/babel-plugin-danger-remove-unused-import","last_synced_at":"2025-04-14T03:25:45.961Z","repository":{"id":37692962,"uuid":"112474931","full_name":"imcuttle/babel-plugin-danger-remove-unused-import","owner":"imcuttle","description":"babel-plugin-danger-remove-unused-import","archived":false,"fork":false,"pushed_at":"2022-12-08T04:36:13.000Z","size":1646,"stargazers_count":19,"open_issues_count":17,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T02:33:59.074Z","etag":null,"topics":["babel","remove-unused-import"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imcuttle.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-29T12:50:51.000Z","updated_at":"2023-08-16T08:29:37.000Z","dependencies_parsed_at":"2023-01-25T04:45:14.872Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/babel-plugin-danger-remove-unused-import","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-danger-remove-unused-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-danger-remove-unused-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-danger-remove-unused-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-danger-remove-unused-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/babel-plugin-danger-remove-unused-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247814731,"owners_count":21000630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","remove-unused-import"],"created_at":"2024-10-15T06:14:05.370Z","updated_at":"2025-04-14T03:25:45.943Z","avatar_url":"https://github.com/imcuttle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-danger-remove-unused-import\n\n[![Build status](https://img.shields.io/travis/imcuttle/babel-plugin-danger-remove-unused-import/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/babel-plugin-danger-remove-unused-import)\n[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/babel-plugin-danger-remove-unused-import.svg?style=flat-square)](https://codecov.io/github/imcuttle/babel-plugin-danger-remove-unused-import?branch=master)\n[![NPM version](https://img.shields.io/npm/v/babel-plugin-danger-remove-unused-import.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-danger-remove-unused-import)\n[![NPM Downloads](https://img.shields.io/npm/dm/babel-plugin-danger-remove-unused-import.svg?style=flat-square\u0026maxAge=43200)](https://www.npmjs.com/package/babel-plugin-danger-remove-unused-import)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n\nFor shrinking the bundled javascript size :smile:\n\n**Note: remove unused import is dangerous**\n**because the imported package may have some side effects!**\n\n## Option\n\n```javascript\n{\n  ignore: ['react']\n}\n```\n\n## Input\n\n```javascript\nimport React from 'react'\nimport Button from 'button'\nimport _ from 'lodash'\nimport moment from 'moment'\nimport { data } from '../some-where'\n\n// ...\n\nconst a = {}\na.moment = \u003cButton x={data} /\u003e\n```\n\n## Output\n\n```diff\nimport React from 'react'\nimport Button from 'button'\n- import _ from 'lodash'\n- import moment from 'moment'\nimport {data} from '../some-where'\n\n// ...\n\nconst a = {}\na.moment = \u003cButton x={data} /\u003e\n```\n\n## Todo\n\n- [x] Supporting Scope\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fbabel-plugin-danger-remove-unused-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Fbabel-plugin-danger-remove-unused-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fbabel-plugin-danger-remove-unused-import/lists"}