{"id":18996972,"url":"https://github.com/rburgst/fastify-eslint-ts-problem","last_synced_at":"2026-06-23T13:02:49.372Z","repository":{"id":145057052,"uuid":"531645890","full_name":"rburgst/fastify-eslint-ts-problem","owner":"rburgst","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-01T18:46:39.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T16:45:05.934Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rburgst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-01T18:45:50.000Z","updated_at":"2022-09-01T18:45:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"04411a4a-b2f7-4cad-b95d-2cbf6bf80c2d","html_url":"https://github.com/rburgst/fastify-eslint-ts-problem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-eslint-ts-problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-eslint-ts-problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-eslint-ts-problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-eslint-ts-problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rburgst","download_url":"https://codeload.github.com/rburgst/fastify-eslint-ts-problem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240011801,"owners_count":19733771,"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":[],"created_at":"2024-11-08T17:37:45.799Z","updated_at":"2026-04-16T18:30:16.496Z","avatar_url":"https://github.com/rburgst.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample repo for fastify lint problem\n\nShows a linting problem with `reply.header()` which appears to be async even though it is not.\n\n1. `npm install`\n2. `npm test` -\u003e all ok\n3. `npm run lint` -\u003e shows\n    ```\n      11:5  error  Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator  @typescript-eslint/no-floating-promises\n      ```\n4. \"fix\" the lint error by changing `server.ts` to \n    ```typescript\n    server.addHook('onSend', async (request, reply, payload) =\u003e {\n        await reply.header('x-foo', 'bar')\n        return payload\n    })\n    ```\n    i.e. add `await` to `reply.header(...)\n\n5. run `npm run test` -\u003e now the test hangs and times out after 5s\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frburgst%2Ffastify-eslint-ts-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frburgst%2Ffastify-eslint-ts-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frburgst%2Ffastify-eslint-ts-problem/lists"}