{"name":"@putout/plugin-remove-empty","version":"8.0.0","type":"commonjs","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":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-empty#readme","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":{},"keywords":["putout","putout-plugin","plugin","remove","empty"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.0.0","lerna":"^4.0.0","madrun":"^9.0.0","montag":"^1.2.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"3abde2d1c58d58ccebf308d9fc1f4ca8c47bc34f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@8.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-QXA1zzS+BOrgsv1789TlxfVC/Nl5CHAHOmLVpRfL6XY0BNL3dR2uuZXrrjMB1HRsebUUzmoWu9eboAwz0b0pkA==","shasum":"0b9b433417defd2b2b56772d6b053dcbecc1a793","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-8.0.0.tgz","fileCount":9,"unpackedSize":10451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkrMBm5chQ79fGtAy+j+7dM4JFlRlRxPKdxwyscXd6JAiApW6yeGqS2tJ3GGPGwmwzLT4RrLweEGZXS3F2jz7qEzg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiR3P8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXeA/8DX/b3mw8pN33h1miBemz/+RIO0FqBXVNpMuGK4cyZbIl7gea\r\nIJtwLs2jRx1StImG6AFFwE++WuNpHevQCPsU3lCgm7nO4t6HPJiGX4skGdys\r\nOTtaTxJt8V7VVBCOx+llSRuuCIB02m3dIkwd/Cw5VLwBZPTeMQGCQ0Shpxnr\r\ny8bPvxYPgJb7tt/PFJSrFatNXmCXBVG05118D0IWDN6IrE/cwtYu9ppbNAR/\r\nbHI9B3kVbr016VrvSU9/4Ev3UGl6lleO+utoSpzCOAk7Y50nhHNYogs9s7re\r\n6p2WKRCnQhixGbpyFTBOQcfVIYjqs1L95lEJs1ZZNfoaj+MeLKeiNUOeUnGQ\r\nDaQ7XEMWWSbRfpKws9deKIAP8oeTCUPOIwfO9XtloeD3FqPZ5Nhqca7jy+BF\r\nQxxnbriz7CvZzlMJfJUf2/QW2eA4ROKygPOFfORYeVDPCcieO3JoWYXH3IBg\r\nMKpfkwrgdB1kBPOnXASlYRoWtgbp3bFZLYToYPRfD10xFLWKWcloJ3qUMMe4\r\nho8zNN0a5r5K6jEVIncnPBQ7FnCDfKb/MZlXqrAlrcEsyts/LK9m0EsUD5x6\r\ng/7oM5nta3HBBNebyBNQjkgs94Qv253eHKmR/BG/OxeP+xZvxVIRI7DUWYzw\r\nIhPpvcHgKiqlxRpO+bzkzxhyJsJn8R0OYjY=\r\n=17vU\r\n-----END PGP SIGNATURE-----\r\n","size":3455,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-8.0.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_8.0.0_1648849915928_0.6929820333708954"},"_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":1648849916101,"_cnpm_publish_time":1648849916101,"dist-tags":{"latest":"15.0.0"}}