Skip to content

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

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Oct 24, 2022

  • chore: drop eslint-disable rule
  • refactor: add types for makeMockApiError

@jsjoeio jsjoeio self-assigned this Oct 24, 2022
@@ -99,7 +99,6 @@ export interface WorkspaceScheduleFormValues {
ttl: number
}

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
Copy link
Contributor Author

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
Copy link
Contributor Author

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 👍🏼

@jsjoeio jsjoeio changed the title jsjoeio/fix explicit module chore: clean up eslint-disable lines Oct 24, 2022
@jsjoeio jsjoeio marked this pull request as ready for review October 24, 2022 22:04
@jsjoeio jsjoeio requested a review from a team as a code owner October 24, 2022 22:04
@jsjoeio jsjoeio requested review from BrunoQuaresma and removed request for a team October 24, 2022 22:04
@jsjoeio jsjoeio enabled auto-merge (squash) October 24, 2022 23:19
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jsjoeio jsjoeio merged commit dea3297 into main Oct 25, 2022
@jsjoeio jsjoeio deleted the jsjoeio/fix-explicit-module branch October 25, 2022 00:55
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants