feat: support ESLint 10 across react/resource-architecture + tanstack-query-cache#5
Merged
Conversation
…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>
Merged
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
context.getFilename()(deprecated since ESLint 9, removed in ESLint 10). Replaced 15 call sites with thecontext.filenameproperty.eslintpeer to^8.57.0 || ^9.0.0 || ^10.0.0. No behavior change for v8/v9 consumers.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
Test plan
🤖 Generated with Claude Code