{"name":"@putout/plugin-remove-empty","version":"13.0.1","keywords":["putout","putout-plugin","plugin","remove","empty"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-empty@13.0.1","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-empty#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ccdbfbe1a7d6a0e258ad657811f360cc04094efb","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-13.0.1.tgz","fileCount":9,"integrity":"sha512-mhLAuLrDnm8R6p3dA8aEngEfmY27ZdjCDMJuLbakw7An0cUIK8s7vOqhUJBKBgz+WkmU3tpwlF56Vy4nUdCTPQ==","signatures":[{"sig":"MEUCICh3WvvRSO09xE5vdKXIBdFBFxMHMWtv0Ixh9MjPUyBEAiEA30QnXERajmm36hhrrHDU5iKN9H9ctLnUdvEk+xEe/v4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12333,"size":3972,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-13.0.1.tgz"},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"e88ef39bbe7abcf4088113029506fd7aa643dfed","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to find and remove blocks with empty body","directories":{},"_nodeVersion":"22.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","@putout/plugin-remove-nested-blocks":"*"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-empty_13.0.1_1736109797397_0.6194409080663525","host":"s3://npm-registry-packages-npm-production"},"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 arguments`;\n\n## Install\n\n```\nnpm i @putout/plugin-remove-empty\n```\n\n## Rules\n\n- ✅ [block](#block);\n- ✅ [static-block](#static-block);\n- ✅ [pattern](#pattern);\n- ✅ [nested-pattern](#nested-pattern);\n- ✅ [argument](#argument);\n\n## Config\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    }\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## 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":1736109797580,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1736109797580,"dist-tags":{"latest":"15.0.0"}}