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

Make eslint understand modern .js with babel's parser #1768

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Oct 9, 2023

With this, we can use prettier in pre-commit without getting errors stemming from the formatting changes. Previously we did because the eslint's .js parser was not modern enough to support the formatting changes.

By switching to use the @babel/eslint-parser we are fine for now at least, and I think in the future as well, because we end up using a parser that is provided by babel, which is also what we use to transform the .js into something else.

@consideRatio consideRatio added maintenance Under the hood improvements and fixes code:html/js/css html/js/css changes. labels Oct 9, 2023
@consideRatio consideRatio requested a review from yuvipanda October 9, 2023 08:17
@yuvipanda yuvipanda merged commit e64028a into jupyterhub:main Oct 9, 2023
10 of 12 checks passed
@yuvipanda
Copy link
Collaborator

Thanks for sorting this out, @consideRatio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code:html/js/css html/js/css changes. maintenance Under the hood improvements and fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants