-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(eslint): fixing some eslint warnings #7382
Conversation
lib/datasource/packagist/index.ts
Outdated
// istanbul ignore if | ||
if (cachedResult) { | ||
return cachedResult as Promise<AllPackages | null>; | ||
return Promise.resolve(cachedResult); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think cachedResult
is already a Promise
? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I'm not super confident with returning the Promise
instead of the content, but I'll fix the types on this one for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the way to go. needs to be extended to the other cache places
- `no-unused-vars` was commented out in favour of `@typescript-eslint/no-unused-vars` - `@typescript-eslint/camelcase` was deprecated and replaced with `@typescript-eslint/naming-convention` - `@typescript-eslint/no-floating-promises` is already enabled by default in `@typescript-eslint/recommended-requiring-type-checking` Code changes are all related to `@typescript-eslint/no-unsafe-return`, and fixes any issues under `lib/workers`
887bc41
to
b0fa1aa
Compare
🎉 This PR is included in version 23.42.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
no-unused-vars
was commented out in favour of@typescript-eslint/no-unused-vars
@typescript-eslint/camelcase
was deprecated and replaced with@typescript-eslint/naming-convention
@typescript-eslint/no-floating-promises
is already enabled by default in@typescript-eslint/recommended-requiring-type-checking
Code changes are all related to
@typescript-eslint/no-unsafe-return
, and fixes any issues underlib/workers