{"name":"@putout/plugin-remove-empty","version":"7.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","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/test":"^4.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^13.0.0","lerna":"^4.0.0","madrun":"^8.0.1","montag":"^1.2.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=24"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"36b6fc44e65e0e7c98148cce9b54e360186a9608","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@7.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-8K1o9qNkQvJZIFAqoeXAx3Fl7Y6K7ANATb84Ldwe+mLA0he9WkSq6DsVvKb3TC0XdZBqr8fk0t1N3SPHBYpQtg==","shasum":"6a030db1433ff67611a7e5bd72946ceabfc72592","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-7.0.0.tgz","fileCount":9,"unpackedSize":9851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAPwPCRA9TVsSAnZWagAAq2kQAJAxC3UGHZp8GeNHiyde\naNkN0frFd/2Y04J6Fs7sNzWqFaVWOyDBdm+aihceEfXvAvXVb+CKEBhCI//V\nfk2dASM+v2xFyeRYJw8dlc5yBKRxM1FjevbqqMVUrL8oZpZgjeXeYt3afLDf\n3zUsG53e9W6q9wo8uYJ/mxG9cmQ/EyW6zuQlcBzEDp+9kzlteFsxTz7kkeLk\n7SiKFINvr+QaAhW2LHoOQ9ZgC3yY5Me8hfRscjegq0GiFOEBYrV35TOd4uV+\nVLfp0hESX4UDTnNoulYhphFgnoEo9II+R4BL7E74qHivWz5gReZ/l58OdAZ5\nQsosuz/AopaL++97Jhe+vRf4F7bXaIYiGtXK43V6lMQrP92xlZ4aHVWHd0QB\nmpS3NK9hmRGpHBqbRmO8HcoE3he2aAtgUaj5Jb6SNYCSjAWrgVOiIhbUwjg5\nMOIr3WMzJdBbJBkpR1P5c4h4zOrmIHLWDsYKx5oxo6f/XYhmKlGX9VVrJHat\ngrmsM/7/FMXLV1hYG53P/OFl5ehT+8rD8ddcmw+DBV5L6S7FTzKtQBSYez9K\nTg8nYuWDlL+aSwKzJb5DsfUKxYVzq6KeuKt/ROdgG2to4RX2npVLVmB6yuxZ\nut6Eyy/v5Ny9gIRl1ID+Jv5ScuB1XPTcILJXaPZVfvOwd5QrhijxPYJ0mZDL\nu/iX\r\n=HGJ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyZg63GxLN73aR0fjORYgiCXrfo6M1U6mpL8s+yxXwUwIgREBmyIY464iBXljSUC9IKDupE3IM9Bsu6bNZc4JZaC4="}],"size":3341,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-7.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_7.0.0_1644231695004_0.0502460518793828"},"_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":1644231695133,"_cnpm_publish_time":1644231695133,"dist-tags":{"latest":"15.0.0"}}