{"name":"@putout/plugin-remove-empty","version":"3.1.1","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.2.0","eslint-plugin-node":"^10.0.0","eslint-plugin-putout":"^2.0.0","lerna":"^3.8.5","madrun":"^3.0.0","nodemon":"^1.14.12","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=6.5"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@3.1.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-EcqJLRT8dbRsrzDRrLKC0DyxPyaMyjftCU59fhvjyJETha/qrTsuwH7C/4QYRTRdOsBNggjnjptiOwCF23PzdQ==","shasum":"5ce610dfd422cdd2197fabdb5496c74592107d58","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-3.1.1.tgz","fileCount":6,"unpackedSize":8008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlytxCRA9TVsSAnZWagAAGWsP/jVM6k9Nggr2FvogAbj0\n9A9SuqHgEka9687+qTqo/c99mVHrPpUBGQ0huhu2v//cW8x77Ev4bQxWxPk1\nA+S2pz1XI5MoIUY3pWpW8Hhj41PYQLhK4bUN7YYsTweMAyyY9V2kPYxrAQKo\nv82T23C9TqFusMU86gHdVt/XNgVaB28sebBMtZXQD4witXjpCq4udObFcGI4\nmHcaMV8I4Y/AbxyCUVZ2e9hMzxZMcilWLLNZdTALB85huKUvbLX5fGshNdNt\nb79cb9Iw/HxteyfTcimSeSzhlQ9hMMEzeW40xUejYjosfR+mAhi4/qGyrP88\nwD1Bhp4LUQaT4SnksxP3i7d6O4RE7ZkcHf5/S/D7EobYurMCiRlXkTNeiyct\nOGmnPFKcznzAYRKeSjcqOP9k5AZQsle4TtG9IzR4JPnEBYeLr1oME8icYUEM\nztao827jNnRvOCawYa0tCNGzEurmtfyuoYYdEsjG4+w8BWDn3npzN+iDqMS/\nHfLOVxOlGdv22N0HmsZPybE9IFW4Zve1748xKHmGB1HQWEQlI1qHpkY4t729\nt9xIDc2zYUCKKN5oHUNZ0eQjjLiShR4Ela+TgxJqUy2/4DclZDQTGymaugnX\nVrYsASF3z/DPlAWsy3qoSVo2gKy0JpIRAkj0CQXMyRbQ3Wv0aaSvdlAgeQO7\nVEYI\r\n=ytcC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQpeSn07V7UMuZLs+IHBFd3lllimDl61edeMc0ICuvEwIgb7Kml5qP3S8V0F8ImUK/GRlRN3JnscDNKUQdwmdr4NI="}],"size":2843,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-3.1.1.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_3.1.1_1570188144583_0.8392233606743695"},"_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":1570188144697,"_cnpm_publish_time":1570188144697,"dist-tags":{"latest":"15.0.0"}}