{"name":"@putout/plugin-remove-empty","version":"10.1.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/plugin-remove-nested-blocks":"*","@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^17.0.0","lerna":"^6.0.1","madrun":"^9.0.0","montag":"^1.2.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"bf63c28fe5c3400d6aef3eb8e1e2e3569108e0b8","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@10.1.0","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-IsfWAc95Apf6gsm3zUvrs5o9wMl6ISM+wJVsgePgWPgIkhVEQexLbrhGNmFWlTLTGao+xkV6JGRE0Xtr0pi8lw==","shasum":"5ab5b2ba42e57ddd03f2a5872619e0fdb3bd41d5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-10.1.0.tgz","fileCount":11,"unpackedSize":12808,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSgPEWHR+9OFCk6Hm3wEvyRMWyUnOP/RpvqhT+DW4DwAiApPO2+wf7y6q8yVVIzeDL5FBw5bNxvpZIiivj/LR8B6w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJbxzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrn7g/+P8W3sLJZ4SAyIikrIOmNtfk4OXZ7A6pMLvw8J+6+J4tPEjpb\r\nW8Ee0BRJqZh+xGG/gwUDqxD3bYa1EsC6m7YFlqL7Nx40K0VYPmXhs6yLH3gL\r\nciC8mdFSS3+WZC+k+kZ1vVoT1Gtde2RU8CqimvbDU8+cITRNhlKKpB1q5qgL\r\nyh0trsXPbcuQRhM9l2Ro6FyakghGxN7EthiGcyGdstAKrEMlvmD0S7I497o4\r\nPOWKE6FVaFYEs9Vdr6e8y+7hm97qCikIhdRRmQkNQQQCRcbK7B/mF55SpFUr\r\nv92VaUhLx7sGdWizpyltrimN8gyQnVOrrqhhwqW8fsK5pE3dA0IFsdrfGXoG\r\nUBFVj5dumCLI0W918+fGoXrsCqNSRTh3PDe6MlDqJW0Isik82+2DVbpUrOuJ\r\nZbPRKaffRa0cCDWKKEgWGI5hV2QPO7BzeZ6/add7hOJlIVNHh6Nyd5nBQjUB\r\ntNzArUjJyM7ejCDjlm2p3kqjzVU6r325tkxlVQGtbMR6soP82ZjpP81wZOys\r\nxmvY9p3rDlQpNPrcipeOOYZUif7vH68bdspp7lPwwvXmXX/g9AF5cx9BuMQ4\r\nY7CrLUK0t4iVFMfQO/caNslS9TC9pahmFw0daMqZQ6GQNBYpipqFx2Ql55XO\r\n1DoH0Vfm+jzTK6xnLi5eIG80Uyr/fL9TT7s=\r\n=VYPU\r\n-----END PGP SIGNATURE-----\r\n","size":4080,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-10.1.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_10.1.0_1680194675305_0.12508107323613538"},"_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":1680194675476,"_cnpm_publish_time":1680194675476,"dist-tags":{"latest":"15.0.0"}}