{"name":"@putout/plugin-remove-empty","version":"5.4.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to find and remove blocks with empty body","homepage":"http://github.com/coderaiser/putout","main":"lib/remove-empty.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"@putout/plugin-remove-empty-pattern":"^3.0.1"},"keywords":["putout","putout-plugin","plugin","remove","empty"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=7.17"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@5.4.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-2TkCgUTJ8VwmymHap+VXj6qUBnrv7i21JNO36zr593BomRCADWqDt9Dbg1FOnM3aUk4C0ghZDMSe8gzkYof/ig==","shasum":"071e548ad796f87f5812a8666260be93d21752cf","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-5.4.0.tgz","fileCount":7,"unpackedSize":8582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgn9AoCRA9TVsSAnZWagAAzG8P/iyC0f7ZxES1GVrbNizk\niDVTeVNeBYBdmzhxHbsZeKruiCNmoAIzDtOUZVZPl5C6Row4xlBBSHovBvwV\n0gSe/gJPKL+DNFI7uc5tzQSRuDgwaWAs3SJX3/qfna8XAQjSKlriYK8V42We\nMZ2NKXBVfxL6qGWKvH0D/ZcPdsv+tXJK4g5MPo/l1+H3F4HXPn4TPrl7idmk\nARRZeHguC6Cq1eNHutXYOXZTVhFipxAIuto6B7vgiqG2gp3fC2M2UC/oDG7o\no8h1CM6+I5RUSH0Ie1NEDUJMttzUh35DJ/AHkXrPxJmLLHAjWNKGV73XcBJX\n0lxnfVcaqXfkJx6WnQ11I2swKCyYz91IzEHfgz/OfQjh+JN0AraVB9RUq6m2\nL9wLLFqTp1By98Jh7NkqotDegOPI9QFzJ0Yfz6GCjKADN0MU4iYexeW6arU5\nvW94/qdUtTq6EGjCRohOgIzqCoPAMdpkOtPeNMU6ljKsHpV/n/4/LdzsFTZp\n3q3iOmotgXi5kZJSUubDNZQkJM6c0x4MixpLH2bjtKVgTGuj30PggPBXdt3M\nATcDYxVqQWOqw+IkzacDblA4t0W48D4Oi7w++gW2luBXeLd+jz8go+QeijHe\ny1Bq7o/UMdhROdfB+hB3Joy5JYA6BCjtU7TO6E0JrgvaB6ZHVdSNK4fZstqp\nscrb\r\n=R4uN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA2kskSn7S/v8/9g5hmkeSJanURY2lZSd1MQMEO50fDQIgP+ZD6cbty36hlucp3h+PdGCGMU9vp9fsuvn08wVA8kU="}],"size":3030,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-5.4.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-empty_5.4.0_1621086248255_0.10748870969463886"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-empty [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-empty.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-empty\"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove:\n\n- `empty blocks`;\n- `empty static blocks`;\n- `empty patterns`;\n- `empty imports`;\n- `empty arguments`;\n- `empty exports`;\n\n## Install\n\n```\nnpm i @putout/plugin-remove-empty\n```\n\n## Rules\n\n```json\n{\n    \"rules\": {\n        \"remove-empty/block\": \"on\",\n        \"remove-empty/static-block\": \"on\",\n        \"remove-empty/pattern\": \"on\",\n        \"remove-empty/nested-pattern\": \"on\",\n        \"remove-empty/argument\": \"on\",\n        \"remove-empty/export\": \"on\",\n        \"remove-empty/import\": [\"on\", {\n            \"ignore\": []\n        }]\n    }\n}\n```\n\n## block\n\n```diff\n-if (2 > 3) {}\n```\n\n## static-block\n\nCheck it out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/8d55df306ea7a3c74b494d37bd45f320/634cc2cf40fe7b691d969bb2bbfceecd1668b004).\n\n```diff\nclass Hello {\n-    static {\n-    }\n}\n```\n\n## pattern\n\n```diff\n-const [] = array;\n-const {} = object;\n```\n\n## nested-pattern\n\n### ❌ Example of incorrect code\n\n```js\nexport const func = (param) => {\n    const {\n        a: {\n        },\n        c,\n    } = param;\n    \n    return c;\n};\n```\n\n### ✅ Example of correct code\n\n```js\nexport const func = (param) => {\n    const {c} = param;\n    return c;\n};\n```\n\n## export\n\n```diff\n-export {};\n```\n\n## import\n\n```diff\n-import 'abc';\n```\n\n## arguments\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/2e19524f26b2fb412dd04228cc4a42e1/71b0034c61c33d2f8957b84b4e83d3844aba4f34).\n\n### ❌ Example of incorrect code\n\n```js\nconst create = ({} = {}) => 'hello';\n\nmodule.exports = ({rule, plugin, msg, options}, {}) => {};\n\nconst a = {\n    EmptyStatement({}) {},\n};\n```\n\n### ✅ Example of correct code\n\n```js\nconst create = () => 'hello';\n\nmodule.exports = ({rule, plugin, msg, options}) => {};\n\nconst a = {\n    EmptyStatement() {},\n};\n```\n\n## License\n\nMIT\n","publish_time":1621086248466,"_cnpm_publish_time":1621086248466,"dist-tags":{"latest":"15.0.0"}}