{"_id":"@putout/plugin-apply-consistent-blocks","_rev":"3-5bff03ad1af4c91c88eac50bd0d42bc4","name":"@putout/plugin-apply-consistent-blocks","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@putout/plugin-apply-consistent-blocks","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply consistent blocks","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-consistent-blocks#readme","main":"lib/apply-consistent-blocks.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","wconsistent-blocksch:test":"madrun wconsistent-blocksch: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","consistent-blocks"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^21.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=33"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"928f1c592ff453dda23395b5572a19c73ed00e8f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-consistent-blocks@1.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-GjooKcHB4iE+zzxHR9tZCpYaRTq6rjfH3fv5qPg6PL+mAfnxxeOJSu/RoBeq3vbNEgM2zoiXT90ps4R540HQHA==","shasum":"7da1feb262a9d20dc101fdbf0df67e5e3fc26680","tarball":"https://registry.npmjs.org/@putout/plugin-apply-consistent-blocks/-/plugin-apply-consistent-blocks-1.0.0.tgz","fileCount":4,"unpackedSize":4544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLedlqZ6GrNLqvmdqOnrpV4bX0V4gGk96CoiOev6Nf1AIhAIkRyKHFW5ue8PCRigptKZhRCQO2/DddC+Of0n2Uf+pc"}]},"_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-apply-consistent-blocks_1.0.0_1699879858314_0.07128639028206663"},"_hasShrinkwrap":false},"1.1.0":{"name":"@putout/plugin-apply-consistent-blocks","version":"1.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply consistent blocks","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-consistent-blocks#readme","main":"lib/apply-consistent-blocks.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","wconsistent-blocksch:test":"madrun wconsistent-blocksch: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","consistent-blocks"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^21.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=33"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"8cddf61856a22c538b957aa94362893fd8ee0804","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-consistent-blocks@1.1.0","_nodeVersion":"16.20.1","_npmVersion":"9.6.6","dist":{"integrity":"sha512-izBMkYbxI97UDublnMT8REKGtA8Bv93kiceDbI1VMZSC+wmz+fMEOuCiB5ke4ND3vteLAc5vo7FghQbgrIM6Ow==","shasum":"d65a80e9289ceb0c55f95571e1d1c95ffa0df09e","tarball":"https://registry.npmjs.org/@putout/plugin-apply-consistent-blocks/-/plugin-apply-consistent-blocks-1.1.0.tgz","fileCount":4,"unpackedSize":4602,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQpIabV9EocondOnn1KEEuCHyUOIki2HGniRVx08BcVAIhAILPgRjJlkG7/+zDchL+ekg5an5NSdy94kszU1ChLv4y"}]},"_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-apply-consistent-blocks_1.1.0_1699886051369_0.39056919317954564"},"_hasShrinkwrap":false},"1.2.0":{"name":"@putout/plugin-apply-consistent-blocks","version":"1.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply consistent blocks","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-consistent-blocks#readme","main":"lib/apply-consistent-blocks.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","wconsistent-blocksch:test":"madrun wconsistent-blocksch: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","consistent-blocks"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^21.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=33"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"9402e1742d9ead2fb7fb4997188eb48c22f191d7","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-consistent-blocks@1.2.0","_nodeVersion":"16.20.1","_npmVersion":"9.6.6","dist":{"integrity":"sha512-p9PWmGdODvv2OGXUcv7ZQ5f2CfMmeY4TVdo9YGuc1l4wxf2a3n+rffSBfCF/rjgmr733lunzuAxOBon2nLlOCg==","shasum":"9c00ddbc120e0e2cd5c1822559a64f2133df4623","tarball":"https://registry.npmjs.org/@putout/plugin-apply-consistent-blocks/-/plugin-apply-consistent-blocks-1.2.0.tgz","fileCount":4,"unpackedSize":4869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbp4CqIbvx0iumAm9N/BLoPU4EV+Vw/skG5y+oL2NfvAiA5C4R4CdtQ/K+HJfdJ1mZi6KpR2IwcfPYTuGWb6klN5g=="}]},"_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-apply-consistent-blocks_1.2.0_1699886642505_0.6793623874601715"},"_hasShrinkwrap":false},"1.2.1":{"name":"@putout/plugin-apply-consistent-blocks","version":"1.2.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply consistent blocks","homepage":"https://github.com/coderaiser/putout/tree/v33.2.0/packages/plugin-apply-consistent-blocks#readme","main":"lib/apply-consistent-blocks.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","consistent-blocks"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^21.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=33"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"5c18f849eb6a0d210438cb1c6e50096b2806c26a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-consistent-blocks@1.2.1","_nodeVersion":"16.20.1","_npmVersion":"9.6.6","dist":{"integrity":"sha512-YbYQO6qSpY1ZNro8p0vCyfiqoW0zYZAQBYivLFmz6vnfJC0WcEBPw/viouA1T67RHR0qdR0WeAUmQ2umA8t1EA==","shasum":"812399ba82cf87cd36743c6299648249736a4674","tarball":"https://registry.npmjs.org/@putout/plugin-apply-consistent-blocks/-/plugin-apply-consistent-blocks-1.2.1.tgz","fileCount":4,"unpackedSize":4936,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENeda3DXBy6KYM+P4+llJRH1IhLSNoBpXkHD6Q29H0oAiEA7sxvUSPddP8eZI3yfKJx1G+Lvn7H6sOE/myFoi2BvTY="}]},"_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-apply-consistent-blocks_1.2.1_1699887035301_0.40779159169444257"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-13T12:50:58.174Z","1.0.0":"2023-11-13T12:50:58.601Z","modified":"2023-11-13T14:50:35.699Z","1.1.0":"2023-11-13T14:34:11.576Z","1.2.0":"2023-11-13T14:44:02.678Z","1.2.1":"2023-11-13T14:50:35.508Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"🐊Putout plugin adds ability to apply consistent blocks","homepage":"https://github.com/coderaiser/putout/tree/v33.2.0/packages/plugin-apply-consistent-blocks#readme","keywords":["putout","putout-plugin","plugin","consistent-blocks"],"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT","readme":"# @putout/plugin-apply-consistent-blocks [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-consistent-blocks.svg?style=flconsistent-blocks&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-consistent-blocks \"npm\"\n\n> A **block statement** is used to group zero or more statements. The block is delimited by a pair of braces (\"curly braces\") and contains a list of zero or more statements and declarations.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply consistent blocks. Check out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/9035db21bae7b6c76d1dc875d4c74828/07edbfd755060ae263949caf08b31aa43609375a). Merged to [@putout/plugin-conditions](https://www.npmjs.com/package/@putout/plugin-conditions).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-consistent-blocks\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-consistent-blocks\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nif (a > 3) {\n    m();\n}\n\nif (a > 3)\n    b = 5;\nelse {\n    b = 6;\n}\n\nif (a > 3)\n    b = 5;\nelse {\n    b = 6;\n    fn();\n}\n```\n\n## ✅ Example of correct code\n\n```js\nif (a > 3)\n    m();\n\nif (a > 3)\n    b = 5;\nelse\n    b = 6;\n\nif (a > 3) {\n    b = 5;\n} else {\n    b = 6;\n    fn();\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}