{"name":"babel-plugin-danger-remove-unused-imports","version":"2.1.1","keywords":["imcuttle","shake","remove-unused","babel-plugin"],"author":"","license":"MIT","_id":"babel-plugin-danger-remove-unused-imports@2.1.1","maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"dist":{"shasum":"7966db922f87cc135bfd1af212abf39fa04bd629","tarball":"http://registry-npm.ywwl.com/babel-plugin-danger-remove-unused-imports/download/babel-plugin-danger-remove-unused-imports-2.1.1.tgz","fileCount":6,"integrity":"sha512-VaZEB06bQEtiLDD8KKos4nuKYR89ifJQfdDY3aTgEfbo3QMD9YgJezYe+OOIqtj5wHpGcGgz1CjA+qpYOQI+8Q==","signatures":[{"sig":"MEUCIDanGOFVf7S3ttEsXTlE99nhX1X7XsjmMzs1bGFU5SgnAiEA1+3se94iteExZ25ivSWBLbWL2aWLjN24iHKQZnr7fRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10431,"size":3777,"noattachment":false,"key":"/babel-plugin-danger-remove-unused-imports/-/babel-plugin-danger-remove-unused-imports-2.1.1.tgz"},"main":"index.js","husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"pretty-quick --staged"}},"engines":{"node":">=7"},"gitHead":"1c747b93a81df50ac54223a776efd6ccc2c2d3e3","scripts":{"dev":"npm run babel -- -w","test":"jest","babel":"babel src --out-dir lib -D","clean":"rm -rf lib/*","version":"npm run changelog","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","prepublishOnly":"npm run clean; npm run babel"},"_npmUser":{"name":"shiftj","email":"stjkl@foxmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git","type":"git"},"_npmVersion":"10.5.2","description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","directories":{"lib":"lib","test":"test"},"_nodeVersion":"20.13.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","prettier":"^1.14.3","babel-cli":"^6.26.0","babel-core":"^6.26.0","@types/jest":"^23.3.9","pretty-quick":"^1.8.0","@moyuyc/husky":"^1.1.1","@commitlint/cli":"^7.2.1","babel-preset-react":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","conventional-changelog-cli":"^2.0.11","@commitlint/config-conventional":"^7.1.2","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-danger-remove-unused-imports_2.1.1_1728899122950_0.01823201358044102","host":"s3://npm-registry-packages"},"readme":"# babel-plugin-danger-remove-unused-imports\n\n> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.\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&maxAge=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 = <Button x={data} />\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 = <Button x={data} />\n```\n\n## Todo\n\n- [x] Supporting Scope\n","publish_time":1728899123127,"_cnpm_publish_time":1728899123127,"dist-tags":{"latest":"2.1.4"}}