Skip to content
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

fix: override conflicting semicolon rule #585

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant