Skip to content

feat: support ESLint 10 across react/resource-architecture + tanstack-query-cache#5

Merged
agjs merged 1 commit into
mainfrom
ci/eslint-10-support
May 26, 2026
Merged

feat: support ESLint 10 across react/resource-architecture + tanstack-query-cache#5
agjs merged 1 commit into
mainfrom
ci/eslint-10-support

Conversation

@agjs

@agjs agjs commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Three plugins called context.getFilename() (deprecated since ESLint 9, removed in ESLint 10). Replaced 15 call sites with the context.filename property.
  • Widened eslint peer to ^8.57.0 || ^9.0.0 || ^10.0.0. No behavior change for v8/v9 consumers.
  • Added a changeset for minor bumps on all three packages.

Why now

The BoringStack monorepo's CI is red on every PR with:

```
TypeError: Error while loading rule 'react-component-architecture/no-inline-jsx-functions':
context.getFilename is not a function
```

Dependabot recently bumped consumers to `eslint@10.4.0`; these plugins are the last thing pinning that bump.

Plugins touched

  • `@boring-stack-pkg/eslint-plugin-react-component-architecture` (10 call sites)
  • `@boring-stack-pkg/eslint-plugin-resource-architecture` (5 call sites)
  • `@boring-stack-pkg/eslint-plugin-tanstack-query-cache` (0 `getFilename` — peer widening only)

Test plan

  • All three plugins build clean (`pnpm -r build`)
  • Unit tests pass — 92 + 37 + 5 = 134 tests green
  • After merge + publish, the BoringStack consumer bumps to the new versions and CI `validate` + `typecheck + lint + test` go green on ESLint 10.

🤖 Generated with Claude Code

…hitecture, tanstack-query-cache

ESLint 10 removed context.getFilename() (deprecated since v9). Replaced
the 15 call sites across these three plugins with context.filename — the
property API that has worked since ESLint 9.

Widened the eslint peer to '^8.57.0 || ^9.0.0 || ^10.0.0'. No behavior
change for v8/v9 consumers; v10 consumers stop hitting:
  TypeError: context.getFilename is not a function

Build clean, tests green: 92 + 37 + 5 = 134 tests across the three
plugins. Changeset attached for minor bumps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@agjs agjs merged commit 6eddb40 into main May 26, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request May 26, 2026
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.

1 participant