Repository navigation
refactor(eslint-plugin-query): remove the 'eslint < 8.37.0' fallbacks for 'sourceCode' and 'getScope' since the peer range starts at 8.57.0 - #12325
Conversation
… for 'sourceCode' and 'getScope' since the peer range starts at 8.57.0
|
|
View your CI Pipeline Execution ↗ for commit 5be0744
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 24 bumped as dependents. 🟩 Patch bumps
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
size-limit report 📦
|
…n-query-remove-old-eslint-fallbacks
🎯 Changes
stable-query-clientandASTUtils.getReferencedExpressionByIdentifierkept fallbacks for ESLint < 8.37.0 (context.getSourceCode()andcontext.getScope()), each behind anoxlint-disable-next-line typescript/no-unnecessary-conditioncomment. Theeslintpeer range starts at 8.57.0, wherecontext.sourceCodeandsourceCode.getScope()always exist, so the fallbacks never run. The other rules in this package already usecontext.sourceCodedirectly.Use
context.sourceCodeandcontext.sourceCode.getScope(node)directly, and remove the fallbacks with their comments.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit