{"_id":"@putout/plugin-merge-return-with-next-sibling","_rev":"1-8ade362e6fdf790a77f4ebd9902efb5e","name":"@putout/plugin-merge-return-with-next-sibling","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-merge-return-with-next-sibling","version":"1.0.0","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-merge-return-with-next-sibling@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-merge-return-with-next-sibling#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ff6eb60d9e8afbc6721ad8677138638468db3d05","tarball":"https://registry.npmjs.org/@putout/plugin-merge-return-with-next-sibling/-/plugin-merge-return-with-next-sibling-1.0.0.tgz","fileCount":4,"integrity":"sha512-Bb0JfEBfwvTcVRrVwJT5X9WqsItKROQCRpUsIC7Tf7gg/eydAVoEKAiv3LK8CrsEAd/MwMOCC5erSgGwXOGd+Q==","signatures":[{"sig":"MEUCIGQcukWuDfg4FCGd/RjzDQ05FrmQjshn6iuSDU8ES4kYAiEAzWw6DcmumvOlxGeO7CITUpR6bKppmEEYe8yQWHWI6XM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4901},"main":"lib/merge-return-with-next-sibling.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"a8464bea648a65c038cc078c8d7ac5ff30389829","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"keyswords":["putout","putout-plugin","putout-plugin-merge","plugin","merge","duplicate","functions"],"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to merge return with next sibling","directories":{},"_nodeVersion":"22.13.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-merge-return-with-next-sibling_1.0.0_1736870357212_0.024523163599619036","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@putout/plugin-merge-return-with-next-sibling","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to merge return with next sibling","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-merge-return-with-next-sibling#readme","main":"lib/merge-return-with-next-sibling.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://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":{},"keyswords":["putout","putout-plugin","putout-plugin-merge","plugin","merge","duplicate","functions"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=37"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-merge-return-with-next-sibling@1.0.1","gitHead":"0a04e7bdba57b1cda825c9e230312b33964f7fc7","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.13.1","_npmVersion":"10.9.0","dist":{"integrity":"sha512-zbuaDALCVd+vQ74vEjE/dephbfLWDJsb5ABug/QszXHK89lehAJoD68BOaY9fLa33+1OGJB/mSoGGK6aL1mdMA==","shasum":"b6f1ba16922688fcca4b7a59af83585d4072742e","tarball":"https://registry.npmjs.org/@putout/plugin-merge-return-with-next-sibling/-/plugin-merge-return-with-next-sibling-1.0.1.tgz","fileCount":4,"unpackedSize":4996,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDj4npgu/G39fFpAHgtBMnpiC3V8zoNmO32WasJX5qPGAiEApubsvjKxDIhs8BsvSjilTmrrXnu+/x7tE++feteXrX8="}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-merge-return-with-next-sibling_1.0.1_1738163430942_0.5814356142389043"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-14T15:59:17.055Z","modified":"2025-01-29T15:10:32.935Z","1.0.0":"2025-01-14T15:59:17.426Z","1.0.1":"2025-01-29T15:10:31.111Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-merge-return-with-next-sibling#readme","repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to merge return with next sibling","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-merge-return-with-next-sibling [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-merge-return-with-next-sibling.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-merge-return-with-next-sibling \"npm\"\n\n> The `return` statement ends function execution and specifies a value to be returned to the function caller.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and merge `return` with next sibling. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/2cb7e8836ce0adb6009f21859f8a0c15/9eea5b36a4f6664b05f2f9f0abd271a62a4dbbbe). Merged with [`@putout/plugin-return`](https://www.npmjs.com/package/@putout/plugin-return).\n\n## Install\n\n```\nnpm i @putout/plugin-merge-return-with-next-sibling\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"merge-return-with-next-sibling\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nfunction x() {\n    return;\n    {\n        hello: 'world';\n    }\n    \n    return;\n    5;\n    \n    return;\n    a ? 2 : 3;\n}\n```\n\n## ✅ Example of correct code\n\n```js\nfunction x() {\n    return {\n        hello: 'world',\n    };\n    \n    return 5;\n    \n    return a ? 2 : 3;\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}