Skip to content

upgrade eslint to v10 and update config#1876

Open
beeequeue wants to merge 17 commits intochangesets:nextfrom
beeequeue:eslint10
Open

upgrade eslint to v10 and update config#1876
beeequeue wants to merge 17 commits intochangesets:nextfrom
beeequeue:eslint10

Conversation

@beeequeue
Copy link
Copy Markdown

@beeequeue beeequeue commented Mar 6, 2026

part of #1869

  • there are various rules marked as TODO enable and fix errors which are good to have but have too many errors and will be fixed in follow-up PRs
  • i personally love sorted imports, but i know they're not everyone's cup of tea - should i add it in another PR?
  • i will add all the formatting/fixing commits to the .git-blame-ignore-revs file in the follow-up PRs.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 6, 2026

⚠️ No Changeset found

Latest commit: f83bcae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@beeequeue beeequeue force-pushed the eslint10 branch 2 times, most recently from 456ac69 to 060529c Compare March 6, 2026 00:48
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.49%. Comparing base (549d30f) to head (f83bcae).

Files with missing lines Patch % Lines
packages/get-github-info/src/index.ts 0.00% 1 Missing ⚠️
packages/release-utils/src/utils.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             next    #1876   +/-   ##
=======================================
  Coverage   82.49%   82.49%           
=======================================
  Files          53       53           
  Lines        2382     2382           
  Branches      697      696    -1     
=======================================
  Hits         1965     1965           
  Misses        375      375           
  Partials       42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Andarist
Copy link
Copy Markdown
Member

Andarist commented Mar 8, 2026

should prefer-const be enabled? i see let being used in most places so i assume its by choice, but could you explain why? @Andarist

This predates my involvement with the project ;p it was just a preference of some of the previous maintainers or smth.

@beeequeue
Copy link
Copy Markdown
Author

then i'll mark it as a follow-up pr as well 😄

@beeequeue beeequeue marked this pull request as ready for review March 8, 2026 15:07

## Versions

- @changesets/cli@${
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is something that tsdown could handle very well:

import manifest from "@changesets/cli/package.json" with { type: "json }

export const foo = `@changesets/cli@${manifest.version}`

compiles to

const manifest = {
  version: "0.0.0",
}

export const foo = `@changesets/cli@${manifest.version}`

or maybe even this, but probably only if minifying the output

export const foo = `@changesets/cli@0.0.0`

Copy link
Copy Markdown
Author

@beeequeue beeequeue Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... this does of course assume one builds the package after upping the versions and publishing

@Andarist
Copy link
Copy Markdown
Member

@beeequeue could you sync this with next?

@beeequeue
Copy link
Copy Markdown
Author

beeequeue commented Mar 25, 2026

i'm thinking we should merge this after #1879 since it touches a lot of files and the rebase would likely be quite a task if this one was merged first, while rebasing this pr is just re-running eslint fix on the conflicting files

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.

3 participants