{"name":"@putout/plugin-remove-empty","version":"8.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-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":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f1f4cd78ade46aba554848bb417f6ecb2913e753","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@8.1.0","_nodeVersion":"18.7.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-IJKYghB8ENqIJ3Pj34pWKX8W5BXhWmKml4DQHG1bZ/jwkcA7ydVk1TjNk0qeSBUSHdj7XxAVHrYP6HQDP62YtA==","shasum":"14700f2f6ca8349c4de024cc2437a7ed7ec7fd1d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-8.1.0.tgz","fileCount":9,"unpackedSize":10592,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACc9zrgyhxCmqA4Rpag9Kt82tlMIQj5nip0q76pCz9LAiAZPM4HXyKSm1GlK/++kcmx38eGagSI2xql5egd5Dk8tg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7UMOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrskhAAlYSmD2rkNZT0dD+v0kajr/RcUpB9qQZf+9pMKjSg2CDlNd0h\r\n50Ot1G80lwTMARQ9e62oJpp0X2UwUN0zEmrB77XdWA6QHMFv56R3Ui+X+hpN\r\nsv7GekqXyoK0KTGwbhg3imz024gh6BnP5IkDdLzPPwOMYnlBe9kB8aq+ZQcB\r\n4X88l6LGwB7dRQTFtuTum2+T1XD323/IXCnc5GR/uiG9KvCRquGlWqw+SEXc\r\n5KFbyiO/xxI10L0rhsXo1BERyOcO3MVFsITXTJc44QvheIbHH5on51H7PJa/\r\n9zoWExFTFf5P1Qm4A6ZvZBlVvJEB2pw/du6G+QWrerQ2XzVsZx2rDCqb4wQW\r\nGcHzDv815LvaGeSuqIq3OZH5g0AAmKJim6tlT8z7DwSqht7Z4Ls3umyUaJxi\r\npY28/NnH/rfHLNOx3dYCQugPO9XFt9yYJhigKVKG9uvK3Zb1YXnfp6IRepdH\r\nSGg8dChgOMeruBGhcKjV0srzuHOs9sDZOcugQSDO6W95lx5mBz7rTnp5dyHv\r\nsypMUlpT30eRnB+6rUGN9F5ZcTAVbiRiRHrE3ShuO+YxXnIPAVmuXREaGq9z\r\nNGwBKXIhoux0gGmulMtYHTaTn2LzfSJeEtix+A0LuURzFAL+dMh/7hMQ75hX\r\ncjmpDkICSIPvOIWccBxzz6RDfEkFXXTkK+A=\r\n=qk40\r\n-----END PGP SIGNATURE-----\r\n","size":3510,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-8.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_8.1.0_1659716366377_0.7995573551942838"},"_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":1659716366531,"_cnpm_publish_time":1659716366531,"dist-tags":{"latest":"15.0.0"}}