{"name":"@putout/plugin-remove-empty","version":"9.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","commitType":"colon","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/plugin-remove-nested-blocks":"*","@putout/plugin-remove-unused-for-of-variables":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^5.0.0","madrun":"^9.0.0","montag":"^1.2.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=27"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f2199c65bf376bd123795c4fcd260ca0aab1eefd","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@9.0.0","_nodeVersion":"18.8.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-1FPqDsoGxO1i2Qp0wzXSGvYUB94KTIYoYpdgfbCco68B8sfLTBHz2fsPfZLs3In0++wT6tld177HKmhk0mYFPA==","shasum":"561f69c8c565b54f1362dfeb3cfdd4752e22d2c9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-9.0.0.tgz","fileCount":10,"unpackedSize":11415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVpsOtKt/qcH6U9cO6FKhPdAuuOcitEKSj9n3TD3vdOAIgbATMdhdMwKsm4oAOUCAzRTxZSUizjAUapwkz+BY1e5k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCJbQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRMw//bzZYuvpclKgeipqtEDj3j08Mm7RDrXPmp+aFKJl8yYpO0J12\r\nVsZNRAK2pnJaPQEW5akI9QdpNvNDbHFcuNYzL4OOM7JUuZkdGAKAfCk1mxdy\r\nRidwEudVHyyoF3UoJNADmbiMoY4A0r5A2zEIt/KdmpV892V7p61OZFcmTvoH\r\n/DInG1er1D5L+RcXbgL640YxZkCtnF51hsPioPNjDf9L9Mvri19DFodh56y4\r\nHJfjHZg/WSKlDRwqw3o3gZV1fdx0YWYp42f5VXoVh6XxNrXWguT8Hiax1WSZ\r\n2BBop+mvldReEv07xMQHycQLaLgmdKCegZQxi/joJHXLBx3cBKop+fNHsHfb\r\nVO4nNYVPC5TLp9eiAuYNErK4jnuXbhqFdQM8XyU4Lvg989NV54VvJemJcmGJ\r\nIe6VDIcavhMeDJA7GXNCV8fJifxR1A+ltmsuYZOOY6bQO22f/kcS+yxkWdPZ\r\nBLQ37mcg64Rk5Tb6ZVBhWrfRYuVEnhI7V/1zLPnJhMONdvaH8KO8bAoGfKIp\r\nitNW7ZbKHrZOYuJ/uw2Tu7hndRXC+JZQaXM1ZH6v1yxoFSqieShaiBOjqEmN\r\n+UGTceakXOGQNEHPOsWW8j1sNMiWidhi1KyiybqQR7A3ft29YYUwjnddiYyh\r\nPId8yswRRRzbAV5GArRhYXKBgKuuVNGjE3k=\r\n=V1Vj\r\n-----END PGP SIGNATURE-----\r\n","size":3667,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-9.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_9.0.0_1661507280241_0.43602187674272264"},"_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":1661507280423,"_cnpm_publish_time":1661507280423,"dist-tags":{"latest":"15.0.0"}}