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

THRIFT-5811: Update eslint & prettier #3087

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

Conversation

cameron-martin
Copy link
Contributor

@cameron-martin cameron-martin commented Jan 15, 2025

This update is necessary to be able to lint dynamic imports in #3083.

Eslint have changed config formats, to use a "flat config". This means the .eslintrc.json and .eslintignore have been merged into one file, eslint.config.mjs.

No new eslint issues were introduced by this upgrade, but prettier formatting has changed a lot. I have put the prettier reformatting into a separate commit for ease of review, but I can squash before merging if this is desired.

  • Did you create an Apache Jira ticket? (Request account here, not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

This update is necessary to be able to lint dynamic imports in apache#3083.

Eslint have changed config formats, to use a "flat config". This means the `.eslintrc.json` and `.eslintignore` have been merged into one file.
@Jens-G Jens-G added the javascript Pull requests that update Javascript code label Jan 15, 2025
@cameron-martin cameron-martin changed the title Update eslint & prettier THRIFT-5811: Update eslint & prettier Jan 19, 2025
The new version of prettier formats code slightly differently, so this runs it over the entire codebase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants