{"name":"@putout/plugin-remove-empty","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to find and remove empty.log calls","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":"tape 'test/*.js'","watch:test":"nodemon -w lib -w test -x \"npm test\"","lint":"eslint lib test --ignore-pattern test/fixture","coverage":"nyc npm test"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","remove","empty"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.0","eslint-plugin-tape":"^1.1.0","lerna":"^3.8.5","nodemon":"^1.14.12","nyc":"^13.0.1","redrun":"^7.0.2"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-empty@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"integrity":"sha512-kU0us7kHwzC8Ono5750W2sCcGXmA/CLpwqwbzTrvZ6TSyI1xWbSDeJltPDl/tcuTWv31NufPLz+KztfU3XnsFg==","shasum":"899767fa67a63dd2007fdd114f0b05d45c703adb","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-empty/download/@putout/plugin-remove-empty-1.0.0.tgz","fileCount":4,"unpackedSize":4979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPHLuCRA9TVsSAnZWagAAmZIP/19F9docoCd1dMBDzORb\n1gfFmqo0KYmOQno0hSc734qivCwxyW+F3S841VWHGzDLz5hhcLf6WhchA1T5\n3Ye63bUI/SyL+xn9p1JZDPY4i2H14XBIRZfg/SCw+8NXg/T5z1kz1R60Mn5L\nHCg44OF5gK5LK82nf7KirlGWqTLj5w823heg6bBqQuPNXueISw9ZfBZ+04qq\nxHiOI1bIDz6G6itQ2Qh+CEgzNRR6clNzONJ6SGRLtc8LOC1FFMF/c5FEfdhk\no0SDE9bSK5/lkxEzFap3X3+7v97erXcK0DaCiNLYfZppLWtERxssN7lhoEzD\nHO2hxXyBkesI9lnZlvkcHc9e/PvlQ+ufKsHSoU4NomdS4Gvz6SKJbWwiCrr4\nyKQmpHBnNbLbu07NZQt8zpedllJJMDHDF02k+YSUIWNz02dntU8/PZ4xHsIg\n5Cmn2B37dpD5JOXSScQU+vfw5vg8FxT+CDHllWbGgj+v/9LYR1DaOxNMbZ07\nf/rsh4twjG1kEt5OdydC23/K4CDauy8Iz8dqR9G3Bzz+8d5nKdHRCn+wNVqb\nnRWdxfoNXIIPToVzSA0QDucr5lDUUxwg5+CLeBYhBEK2etchp4swob1Y1Xuu\ntNe1zfCSzttjxBuuNAt0HVMDCXodXgdmBTVeJUoSWY6qzjjTs44mj7AW82yw\nUkn4\r\n=CHY7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICV8NmpX5gmNbJ5mLPFnQ1Z9mD5DPEvtH4EdcP3nhSKpAiBguMu1v4gIhCvVosYrBg2wB1O9m0jViqm5ZBPXg2QN7w=="}],"size":2192,"noattachment":false,"key":"/@putout/plugin-remove-empty/-/@putout/plugin-remove-empty-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-empty_1.0.0_1547465454074_0.137052723478007"},"_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":1547465454331,"_cnpm_publish_time":1547465454331,"dist-tags":{"latest":"15.0.0"}}