https://github.com/blimmer/eslint-no-floating-promises
https://github.com/blimmer/eslint-no-floating-promises
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/blimmer/eslint-no-floating-promises
- Owner: blimmer
- Created: 2020-10-06T17:14:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-06T17:26:08.000Z (over 5 years ago)
- Last Synced: 2025-01-09T13:57:47.328Z (over 1 year ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-no-floating-promises
This PR is a repro case for an issue opened against eslint. See [typescript-eslint issue 2640](https://github.com/typescript-eslint/typescript-eslint/issues/2640).
## Instructions
1. Run `npm ci`
1. Run `npm run lint` to see the exceptions.
## Example Code
The example is located at [src/example.ts](/blob/main/src/example.ts)
## Lint Errors
Here are the lint errors, in case you don't want to pull down the repo:
```console
src/example.ts
10:1 error Promises must be handled appropriately or explicitly marked as ignored with the `void` operator @typescript-eslint/no-floating-promises
15:3 error Promises must be handled appropriately or explicitly marked as ignored with the `void` operator @typescript-eslint/no-floating-promises
16:3 error Promises must be handled appropriately or explicitly marked as ignored with the `void` operator @typescript-eslint/no-floating-promises
24:3 error Promises must be handled appropriately or explicitly marked as ignored with the `void` operator @typescript-eslint/no-floating-promises
26:3 error Promises must be handled appropriately or explicitly marked as ignored with the `void` operator @typescript-eslint/no-floating-promises
29:1 error Promises must be handled appropriately or explicitly marked as ignored with the `void` operator @typescript-eslint/no-floating-promises
```