{"name":"@putout/plugin-remove-empty","version":"2.9.0","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":"http://github.com/coderaiser/putout","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","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{"@putout/plugin-remove-empty-pattern":"^1.0.1"},"keywords":["putout","putout-plugin","plugin","remove","empty"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^6.0.1","eslint-plugin-node":"^9.1.0","eslint-plugin-putout":"^1.0.2","lerna":"^3.8.5","madrun":"^2.0.0","nodemon":"^1.14.12","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=4.49"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@2.9.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-dYdhwGKYGQVqqld3GFO/fq1v2XbtVzmNZhgrOqyPgsAD2j7ivwpGHkbNyHZP1WPEwcqc7Ld30ugNh7bsWLGhJQ==","shasum":"9c0665235c13369101ba45c9de2e00bd38c34b4d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-2.9.0.tgz","fileCount":6,"unpackedSize":7771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJIlqCRA9TVsSAnZWagAADA8P/i0QJhsj4IyV6gIe8pzJ\n8TP5KH4HJ9yFBEsVRHrXBsS44yFFXmyuZBx+YmORU4leu+Qhk32FKedigIVo\nPjgGFM5goHvmfui10XMG9h/tK2JyvEcBTI91tqOuLggv725ujHh7SYjbamkQ\n1sRX1J5SAGqGUCsu3j6hqp0JUb8QXWU69itSRpmwl2mMO5OkoJdK5iMdJJvU\nkn0RiRRClLY3afDmZiFVklavgxwBkpvPgDsXVh11/YEFi3KrtQ2U3xIr0ddS\nIHG7Ck8twMswLSXO/r0NdDyiGDap/+mPObqJJVGHegGF+nAB+Ovb535An7v6\nDKFO+iwUIkpECLtuWhvjHnLviTCW6MNZJEjw+Iv9Il+m8Rf2cg9iZqvAn0gU\njSCl7/47US5yVS8E4Y3DWQDXo561Vo1hOsLEebBgPiSE0e2LQTagD2FStpJZ\nQ2X3wvLrJg+a7x3O852CJhUPQVJyRp55VjnQgSfFV1bF9eiDt/WokiJWsVcI\nstTHPEt1SCCLTILKHq0Eg+o421pmbqCg1xw3K9G1X1djunknld794QycG5pR\nnVX9kFNDb9lJ8CVQf5p94b4pVIBQB0a/jGHpZIr+O1/aCT3QY/7G2Mxvv8BN\nj0P2d+n/yID+PeKkT9T2UGSKuC5I7IYxrJl3wISfRhJ7xzisZaXaoC482QZq\nWs/J\r\n=T5Qu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDTt/i9cO9Gc/og8n1gk7HdAfBpqE1uEsoBhFcBbxFfwIhANnSRAMj1JcYNg5JQUydABOigDVOWSnkgOa4Fqz5BmH3"}],"size":2804,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-2.9.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-empty_2.9.0_1562675561884_0.4585342626333322"},"_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":1562675562002,"_cnpm_publish_time":1562675562002,"dist-tags":{"latest":"15.0.0"}}