{"id":16720917,"url":"https://github.com/yoavniran/eslint-plugin-no-async","last_synced_at":"2026-02-19T00:35:23.060Z","repository":{"id":57230025,"uuid":"300421278","full_name":"yoavniran/eslint-plugin-no-async","owner":"yoavniran","description":"disallows code that will transpile into use of regenerator","archived":false,"fork":false,"pushed_at":"2025-12-03T07:22:27.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-06T08:55:04.615Z","etag":null,"topics":["eslint","eslint-plugin","eslint-rules"],"latest_commit_sha":null,"homepage":"","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/yoavniran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2020-10-01T20:49:32.000Z","updated_at":"2025-12-03T07:22:31.000Z","dependencies_parsed_at":"2025-07-11T06:32:21.999Z","dependency_job_id":"7eed4488-8703-4f14-ae4b-d7ec2f88c170","html_url":"https://github.com/yoavniran/eslint-plugin-no-async","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yoavniran/eslint-plugin-no-async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Feslint-plugin-no-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Feslint-plugin-no-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Feslint-plugin-no-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Feslint-plugin-no-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoavniran","download_url":"https://codeload.github.com/yoavniran/eslint-plugin-no-async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Feslint-plugin-no-async/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["eslint","eslint-plugin","eslint-rules"],"created_at":"2024-10-12T22:27:28.796Z","updated_at":"2026-02-19T00:35:23.031Z","avatar_url":"https://github.com/yoavniran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"LICENSE.md\"\u003e\n       \u003cimg src=\"https://img.shields.io/github/license/yoavniran/eslint-plugin-no-async?color=blue\u0026style=plastic\" alt=\"MIT License\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://badge.fury.io/js/eslint-plugin-no-async\"\u003e\n        \u003cimg src=\"https://badge.fury.io/js/eslint-plugin-no-async.svg\" alt=\"npm version\" height=\"20\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n# eslint-plugin-no-async\n\nDisallows code that will transpile into use of regenerator.\n\nIf you don't want async/await and generators to be transpiled into use of [regenerator-runtime](https://www.npmjs.com/package/regenerator-runtime) then use this rule.\n\n## Installation\n\n```shell\n#PNPM: \n  $ pnpm add -D eslint-plugin-no-async\n\n#Yarn:\n  $ yarn add --dev eslint-plugin-no-async\n\n#NPM:\n  $ npm i --save-dev eslint-plugin-no-async\n``` \n\nIn Flat Configuration (9+):\n\n```javascript\n    import noAsync from \"eslint-plugin-no-async\";\n   \n    export default [{\n        \"plugins\": {\n            \"no-async\": noAsync,\n        },\n        \"rules\": {\n            ...js.configs.recommended.rules,\n            \"no-async/no-async\": [2],\n\n            //with allowGenerators:\n            // {\n            //     \"no-async/no-async\": [2, true]\n            // }\n        }\n    }];\n```\n\n\nIn .eslintrc(.js) (Before 9):\n\n```eslint\n{\n    \"no-async/no-async\": [2]    \n}\n\n# with allowGenerators:\n\n{\n    \"no-async/no-async\": [2, true]    \n}\n\n```\n\n\n## Details\n\n```javascript\n\nasync function myFunction() {}\n\nconst myArrowFunction = async () =\u003e {}\n\nfunction * myGeneratorFunction() { }\n\nclass MyClass {\n    async myFunction() { }\n}\n```\n\nAll of the examples in the code above will result in the use of regenerator after babel transpiled it.\n\n## Options\n\n```eslint\n{\n    \"no-async/no-async\": [\u003clevel\u003e, \u003callowGenerators\u003e]    \n}\n```\n\n**allowGenerators** In case you wish to allow generator functions, set this to true. (default: false)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoavniran%2Feslint-plugin-no-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoavniran%2Feslint-plugin-no-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoavniran%2Feslint-plugin-no-async/lists"}