{"name":"@putout/plugin-remove-empty","version":"6.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":{"@putout/plugin-remove-empty-pattern":"^4.0.0"},"keywords":["putout","putout-plugin","plugin","remove","empty"],"devDependencies":{"@putout/test":"^4.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^12.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=19"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"bd84dd24be5125e66d36bc1e9ec2e0c65aa60dd6","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@6.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-BaUgd/D94OxLUOt4/p2mLYMLAYURpSxPqFWzWcgnX00jizZCHtooalltEZ6VEyz/oSUC1TLIaxmwWpYTRAvLew==","shasum":"9ec00c6cf69a6aad9621a6c2e23a2ce97a6ed9fb","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-6.1.0.tgz","fileCount":8,"unpackedSize":8833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3A+TCRA9TVsSAnZWagAAoAsP/jKKZiajSsFNnAYruqkm\nZrg3BqaUCV8aOI0UO55IoikeY3/2T3oOlYxoInDKihr0umgGtsuKd7FfJarj\naXPkMnflW6P4AzeI4exwD8JejRbfD1JaH4vm1qZk/SuS3LspujwMNcqBA4YO\nYMBLiCpJeOxphj1U32lt9gGcdArFTWqGPgbNQgpLaNHHByod4P73T8kGTf3M\neqShC+sdZ8//It9L1PtTJGgWmr9MHfgw1L/PPZBGt3Q3D7/GU+f0o03EJ7hy\nArLn5/irsaRL4jrYhRxJJ81wy6U9G/O4WfxANBdNMoZQpEuP4U9B0V8YZwiK\n2ZgUY0G2tdlAamUfK0tAWRJAkDHBGO+/Sndpwi1ij6VvY8Jz/pCGvHav46dp\npLtFOZHOpNsFf42BbsNj8mXfdpIhsnYvhMthblhLo0NNsSJSzrb2ZjT+Xrll\nlfSkCAIXDnwU+JSbgWEZC0qtakTHaTPxKrHvROpJBtfEey+rq9EF/zLJ6CFW\ncIkxUo4SjkA2qLq26Yz1j0G/4VeiBkfOPy6oFfLMy/rR4l0Yi4Q/7ZXwgdRk\ndJXK3bEI/zYwgY8yBtnGYK4lwaJvvnOJ20wI05Lg747UGBojZRgcE2MuhuFO\nFXleeYpowluHNgUzOEthqmkVHSt/N+gWsrXLlOu5JI6/8Db0kFSE9b3AtsYO\nNzrV\r\n=vwkv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKbQi/jIyeLnA20j4fXktRl7e+zuroegJtgJXXQVGFIgIgKG3M2ZCixMAkOG0MmTOZLpbjk3orFoEDeWUy+9pxo6Y="}],"size":3079,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-6.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_6.1.0_1641811859019_0.9512030666921389"},"_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":1641811859195,"_cnpm_publish_time":1641811859195,"dist-tags":{"latest":"15.0.0"}}