GitHub Actions / ESLint Report Analysis
failed
Aug 17, 2024 in 0s
ESLint Report Analysis
1 ESLint error(s) and 0 ESLint warning(s) found in pull request changed files.
Details
Annotations
Check failure on line 60 in src/plugins/record.ts
github-actions / ESLint Report Analysis
src/plugins/record.ts#L60
[@typescript-eslint/ban-types] Don't use `Function` as a type. The `Function` type accepts any function-like value.
It provides no type safety when calling the function, which can be a common source of bugs.
It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.
If you are expecting the function to accept certain arguments, you should explicitly define the function shape.
Loading