-
Notifications
You must be signed in to change notification settings - Fork 887
chore: clean up eslint-disable lines #4735
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
Conversation
jsjoeio
commented
Oct 24, 2022
- chore: drop eslint-disable rule
- refactor: add types for makeMockApiError
@@ -99,7 +99,6 @@ export interface WorkspaceScheduleFormValues { | |||
ttl: number | |||
} | |||
|
|||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
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.
Removed it and ESLint was still happy 🤷🏼♂️ maybe it couldn't infer the type and now it can
@@ -814,15 +814,29 @@ export const MockCancellationMessage = { | |||
message: "Job successfully canceled", | |||
} | |||
|
|||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
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.
Previously, ESLint was unable because we weren't defining the return type.
I decided to break it out into three type aliases: input, output and the function. Makes it a bit more readable too 👍🏼
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.
LGTM!