{"name":"@putout/plugin-remove-empty","version":"2.1.2","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","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{"@putout/plugin-remove-empty-pattern":"^1.0.1"},"keywords":["putout","putout-plugin","plugin","remove","empty"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","eslint-plugin-putout":"^1.0.2","lerna":"^3.8.5","madrun":"^2.0.0","nodemon":"^1.14.12","nyc":"^13.0.1","supertape":"^1.0.3"},"peerDependencies":{"putout":">=3.9.0"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@2.1.2","_nodeVersion":"11.12.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-dT5cfTTps/5r2HAmDxU3SaMoQugVtpmzFVAlvTLouUC+4v8o5olPrAtzGSiwniBQMVemKdqLuZxlfBBlA1OvYg==","shasum":"78a1e449ea5a1e88382f8d4c5a9cb7a86d749121","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-2.1.2.tgz","fileCount":5,"unpackedSize":5503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckjeCCRA9TVsSAnZWagAA8ikP/1Tgnp72BMyrYSVnU/yP\n6B7WzMdRu2l0voXdt7rO9QFcSDWaTOqetdFPxEK2fXY2ldJywO6jQ/pX8zi8\noZSmwQg9cspDCQgYxgJ/x28Uph6+hTdlrHtrIPTfnrG4epnJOjGgQMxcuTer\nZ1B3NJ807CT1kIVawr96fjyM6j1kizq11whArYMxYnr8MqQHDMx+k3CmARhO\nC2Al81NpKAxRKqwF44OXcRotXDjyx7/Q34wl+eIBd6Pt71Q5BeO3SS3Qwm7l\n3cMdPNyI4abylV4o2nTDQUAonQwMa9jPuDlbVZTH7Dtj8vJJftfOXbd/Ttad\nRgalHmBV4b9ZiPt/c08iz/TXE8qNCEfSk36oy36wpObEbobvsRo2WdHdda4e\nCB+jzunLaduFsnEgxTW4f3vmZqhGmJP05OzKf6GezXDG8dw+7LM9mfCX8P8Y\noaOr7Qqsb9ByVdnjLVoUjYRDD2twSTwnbvjNMf8cKnO7kLoAQHtM2KrOdY+G\n0oHGum7ZM5CmrQYt22tAVN0IF7//KqNh9t7OAnQxM7S9EQSp5zQh7x1XVCWA\neT+2F41FhqxnTymQdYLc1BY+unyFovO6TldS+GrLKMjD2HD1fMLvVzlpOvfo\n/jhurUGi5G/GQIJ/jmArFS/qq7NozCnT1FqgRrVvJDR2IVYYiu8WrdVvhisP\nQoGY\r\n=HjJT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqypuRFhKj8QXUOan+XcPdHwdCAM4LclxnAoIKLm5YgwIgJsS3wiKFcx2tqgW4Dc9l7xuw3jKYYOQ9CNWlb7hIvd4="}],"size":2293,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-2.1.2.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-empty_2.1.2_1553086337872_0.1474324148315651"},"_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":1553086338212,"_cnpm_publish_time":1553086338212,"dist-tags":{"latest":"15.0.0"}}