{"id":15880003,"url":"https://github.com/hikire/babel-plugin-arrow-functions-implicit-return","last_synced_at":"2026-04-30T06:39:52.543Z","repository":{"id":143845626,"uuid":"135320387","full_name":"hikire/babel-plugin-arrow-functions-implicit-return","owner":"hikire","description":"Arrow functions blocks behave like do expressions","archived":false,"fork":false,"pushed_at":"2018-07-09T20:19:14.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-20T08:15:40.705Z","etag":null,"topics":["arrow-functions","arrow-functions-implicit","babel","implicit-return"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hikire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-29T15:58:52.000Z","updated_at":"2023-08-22T06:24:44.000Z","dependencies_parsed_at":"2023-07-25T21:17:34.547Z","dependency_job_id":null,"html_url":"https://github.com/hikire/babel-plugin-arrow-functions-implicit-return","commit_stats":null,"previous_names":["zurajanainazayda/babel-plugin-arrow-functions-implicit-return"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hikire/babel-plugin-arrow-functions-implicit-return","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fbabel-plugin-arrow-functions-implicit-return","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fbabel-plugin-arrow-functions-implicit-return/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fbabel-plugin-arrow-functions-implicit-return/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fbabel-plugin-arrow-functions-implicit-return/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hikire","download_url":"https://codeload.github.com/hikire/babel-plugin-arrow-functions-implicit-return/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fbabel-plugin-arrow-functions-implicit-return/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arrow-functions","arrow-functions-implicit","babel","implicit-return"],"created_at":"2024-10-06T03:07:04.864Z","updated_at":"2026-04-30T06:39:52.513Z","avatar_url":"https://github.com/hikire.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arrow functions implicit return\n\nThis plugin allows you to use arrow functions like [do expressions](https://github.com/getify/You-Dont-Know-JS/blob/master/types%20%26%20grammar/ch5.md#statement-completion-values).\n\n## Examples\n\n```js\nconst shows = [\"Death Note\", \"Steins;Gate\", \"Maho shojo XD\"];\nconst nextShow = prevShow =\u003e {\n    const prevIndex = shows.findIndex(show =\u003e show === prevShow);\n    shows[(prevIndex + 1) % shows.length];\n};\n```\n\n### With JSX\n\n```js\nconst getUserNav = () =\u003e {\n    \u003cUserConsumer\u003e\n        {user =\u003e {\n            if (user) {\n                \u003cspan\u003eHello {user.name}!\u003c/span\u003e;\n            } else {\n                \u003ca onClick={showLogin}\u003eLogin\u003c/a\u003e;\n            }\n        }}\n    \u003c/UserConsumer\u003e;\n};\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-arrow-functions-implicit-return\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n#### .babelrc\n\n```js\n{\n    \"plugins\": [\"arrow-functions-implicit-return\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins arrow-functions-implicit-return script.js\n```\n\n### Via Node API\n\n```js\nrequire(\"babel-core\").transform(\"code\", {\n    plugins: [\"arrow-functions-implicit-return\"]\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhikire%2Fbabel-plugin-arrow-functions-implicit-return","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhikire%2Fbabel-plugin-arrow-functions-implicit-return","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhikire%2Fbabel-plugin-arrow-functions-implicit-return/lists"}