{"id":13801886,"url":"https://github.com/fintechstudios/eslint-plugin-chai-as-promised","last_synced_at":"2025-10-25T15:15:57.224Z","repository":{"id":42229666,"uuid":"149331563","full_name":"fintechstudios/eslint-plugin-chai-as-promised","owner":"fintechstudios","description":"Prevent common problems when using chai-as-promised","archived":false,"fork":false,"pushed_at":"2024-07-26T06:34:26.000Z","size":262,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T23:36:47.970Z","etag":null,"topics":["chai","chai-as-promised","eslint","eslint-plugin","eslint-plugin-chai"],"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/fintechstudios.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-09-18T18:04:47.000Z","updated_at":"2024-02-26T06:23:30.000Z","dependencies_parsed_at":"2024-08-04T00:17:57.020Z","dependency_job_id":null,"html_url":"https://github.com/fintechstudios/eslint-plugin-chai-as-promised","commit_stats":{"total_commits":30,"total_committers":6,"mean_commits":5.0,"dds":0.5,"last_synced_commit":"afb14c9aacdf3cd77fbbf320bffa7414e3d3f6f3"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintechstudios%2Feslint-plugin-chai-as-promised","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintechstudios%2Feslint-plugin-chai-as-promised/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintechstudios%2Feslint-plugin-chai-as-promised/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintechstudios%2Feslint-plugin-chai-as-promised/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fintechstudios","download_url":"https://codeload.github.com/fintechstudios/eslint-plugin-chai-as-promised/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253942469,"owners_count":21988059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chai","chai-as-promised","eslint","eslint-plugin","eslint-plugin-chai"],"created_at":"2024-08-04T00:01:29.274Z","updated_at":"2025-10-25T15:15:52.189Z","avatar_url":"https://github.com/fintechstudios.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Testing Tools"],"readme":"# @fintechstudios/eslint-plugin-chai-as-promised\n\nPrevent common problems when using chai-as-promised\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `@fintechstudios/eslint-plugin-chai-as-promised`:\n\n```\n$ npm install @fintechstudios/eslint-plugin-chai-as-promised --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `@fintechstudios/eslint-plugin-chai-as-promised` globally.\n\n## Usage\n\nAdd `@fintechstudios/chai-as-promised` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\n    \"@fintechstudios/eslint-plugin-chai-as-promised\"\n  ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"@fintechstudios/chai-as-promised/no-unhandled-promises\": 2,\n    \"@fintechstudios/chai-as-promised/no-await-in-condition\": 2\n  }\n}\n```\n\nOr, to just use the configuration above as is, you can simply add the\nfollowing instead:\n\n```json\n{\n  \"extends\": [\"plugin:@fintechstudios/chai-as-promised/recommended\"]\n}\n```\n\n## Supported Rules\n\n* [`no-await-in-condition`](./docs/rules/no-await-in-condition.md): Must not use\n  await within chai-as-promised expressions\n* [`no-unhandled-promises`](./docs/rules/no-unhandled-promises.md): Must handle\n  promises returned from chai-as-promised expressions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffintechstudios%2Feslint-plugin-chai-as-promised","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffintechstudios%2Feslint-plugin-chai-as-promised","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffintechstudios%2Feslint-plugin-chai-as-promised/lists"}