Skip to content

Conversation

orinokai
Copy link

@orinokai orinokai commented Oct 4, 2022

There appears to be a conflict between @typescript-eslint/no-extra-semi (which is part of the @typescript-eslint/recommended config) and the prettier rule semi: false.

The prettier rule will add a semicolon in the following instance to protect from ASI failures.

https://github.com/netlify/next-runtime/blob/main/packages/runtime/src/helpers/config.ts#L95

However, the linter then complains because of the no-extra-semi rule.

Since we are removing semicolons anyway, I think we can safely disable the no-extra-semi rule.

@orinokai orinokai added the type: bug code to address defects in shipped code label Oct 4, 2022
@orinokai orinokai changed the title [bug]: override conflicting semicolon rule bug: override conflicting semicolon rule Oct 5, 2022
@orinokai orinokai changed the title bug: override conflicting semicolon rule fix: override conflicting semicolon rule Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant