chore: bump eslint to 10.3.0 + migrate config (drop eslint-plugin-header, switch to eslint-plugin-import-x)#162
Merged
layershifter merged 2 commits intomainfrom May 6, 2026
Conversation
📊 Bundle size report✅ No changes found |
0d1c9ac to
6a58b91
Compare
Bumps the eslint group with 1 update in the / directory: [eslint](https://github.com/eslint/eslint). Updates `eslint` from 9.39.4 to 10.3.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.4...v10.3.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.3.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint ... Signed-off-by: dependabot[bot] <support@github.com>
6a58b91 to
e513c0a
Compare
ESLint 10 removed the legacy context.getSourceCode API and tightened
peer-dep handling, breaking two plugins this project used:
- eslint-plugin-header@3.1.1 — relies on context.getSourceCode().
No maintained version supports ESLint 10. Dropped along with the
Microsoft copyright-header rule (the rule itself can be reintroduced
via a different plugin or a custom rule when one becomes available).
- eslint-plugin-import@2.32.0 — peer range only allows ESLint <= 9.
Replaced with the actively-maintained fork eslint-plugin-import-x,
which supports ESLint 8/9/10. Adds eslint-import-resolver-typescript
for the typescript resolver expected by importX.flatConfigs.typescript.
Also adopts the modern flat-config helper from eslint/config:
import { defineConfig } from 'eslint/config';
export default defineConfig(...);
Adds @eslint/js as an explicit devDep — under yarn 4 strict peer
handling it isn't hoisted by transitive resolution from eslint alone.
Verified: yarn lint, yarn format, yarn build, yarn test (14/14)
all pass on Node 24 with eslint 10.3.0.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9411c66 to
d02cf02
Compare
miroslavstastny
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps
eslintfrom9.39.4to10.3.0(dependabot's original bump) and migrates the project's lint setup to be ESLint 10–compatible.What ESLint 10 broke
ESLint 10 removes the legacy
context.getSourceCode()API and tightens peer-dep handling. Two plugins this project used don't survive:eslint-plugin-header@3.1.1— the entire plugin relies oncontext.getSourceCode(). No maintained release supports ESLint 10. Dropped, along with the Microsoft copyright-header rule. The rule can be reintroduced via a custom rule or a different plugin when one becomes available.eslint-plugin-import@2.32.0— peer range stops at ESLint 9. Replaced witheslint-plugin-import-x(the actively-maintained fork; supports ESLint 8/9/10). Theimport/orderrule becomesimport-x/order.Other dependency changes
@eslint/js@^10.0.1as an explicit devDep — under yarn 4 strict peer-dep handling it isn't hoisted from eslint's transitive graph anymore.eslint-import-resolver-typescript@^4.4.4— required byimportX.flatConfigs.typescriptto resolve.ts/.tsxpaths.^10.0.1,^4.4.4,^4.16.2).Config modernization
Adopts the
defineConfighelper fromeslint/config(ESLint 10's recommended setup):Custom rules and parser options preserved as-is.
Verification (Node 24)
yarn install --immutablecleanyarn dedupe --checkcleanyarn lintcleanyarn formatcleanyarn buildcleanyarn test→ 14/14 playwright tests passFollow-ups