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

Revamp linting #682

Merged
merged 12 commits into from
Oct 17, 2024
Merged

Revamp linting #682

merged 12 commits into from
Oct 17, 2024

Conversation

rygine
Copy link
Collaborator

@rygine rygine commented Oct 17, 2024

Summary

This PR is a complete refactor of how we lint the code in this repository. It unifies and centralizes all tooling and configuration for ESLint.

Highlights:

  • Upgraded to ESLint v9 with new flat config
  • Replaced individual package ESLint configs with a single config at the repo root
  • Replaced AirBnB ESLint configs with standard recommended configs
  • Removed individual lint steps from GitHub workflows
  • Added new ESLint GitHub workflow that lints entire code base
  • Updated ContentCodec generic type to accept a new parameter
  • Updated and added some content type types
  • Fixed new lint errors in content types and Node SDK

Changes

Apologies for all the file changes, but there are no functional code changes in this PR.

Notes

In the interest of time, all new linting errors resulting from this change in the JS SDK have been ignored. Most of them are easy and/or simple fixes, but I'd rather not chance introducing new bugs into a stable code base.

@rygine rygine requested a review from a team as a code owner October 17, 2024 04:04
Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: 77c08c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@xmtp/content-type-primitives Patch
@xmtp/content-type-reaction Patch
@xmtp/content-type-read-receipt Patch
@xmtp/content-type-remote-attachment Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rygine rygine requested a review from a team as a code owner October 17, 2024 04:26
Copy link

cloudflare-workers-and-pages bot commented Oct 17, 2024

Deploying xmtp-js-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 77c08c8
Status: ✅  Deploy successful!
Preview URL: https://30e7e055.xmtp-js.pages.dev
Branch Preview URL: https://rygine-eslint.xmtp-js.pages.dev

View logs

@rygine rygine merged commit 44174c3 into main Oct 17, 2024
18 checks passed
@rygine rygine deleted the rygine/eslint branch October 17, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants