chore(oxlint): enable import/newline-after-import + react/no-unstable-nested-components#40319
chore(oxlint): enable import/newline-after-import + react/no-unstable-nested-components#40319rusackas wants to merge 1 commit into
Conversation
…-nested-components oxlint 1.66 (bumped in #40318) added support for two ESLint rules that were previously listed as not-implemented: - import/newline-after-import -> enabled as "error" (3 violations, auto-fixed via `--fix`) - react/no-unstable-nested-components -> enabled as "warn" with a TODO to graduate to "error" after a cleanup pass (~150 violations that require hoisting nested component definitions out of their parent render functions) Also dropped these two rules from the "not implemented in oxlint" comment block since they are implemented now. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Code Review Agent Run #72ce42Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #40319 +/- ##
=======================================
Coverage 63.43% 63.43%
=======================================
Files 2591 2591
Lines 138471 138471
Branches 32120 32120
=======================================
Hits 87834 87834
Misses 49099 49099
Partials 1538 1538
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
aminghadersohi
left a comment
There was a problem hiding this comment.
Reviewed at HEAD 6eec5f192b36f984ebfad42bb63197daef2b9f01. No issues found across all applicable scans.
The graduated enforcement strategy is exactly right: import/newline-after-import had 3 auto-fixable violations → "error"; react/no-unstable-nested-components has ~150 violations requiring real refactoring → "warn" with a clear TODO to graduate after a cleanup pass. Avoids both leaving a newly-supported rule dormant and landing an oversized cleanup in a single PR.
The TODO comment at oxlint.json:187–190 is precise and actionable. Comment block cleanup is accurate. PR description is exemplary — quantified violations, documented the no-implied-eval non-change, and provided copy-paste verification commands.
SUMMARY
oxlint 1.66 (bumped via #40318) added support for two ESLint rules that were previously listed in
oxlint.jsonas not-implemented. This PR enables them.Rules enabled:
import/newline-after-importerrornpx oxlint --fixreact/no-unstable-nested-componentswarnerrorafter a cleanup passThe 3
newline-after-importerrors were all simple missing blank lines after imports and were fully auto-fixable. They are now at 0 errors in the config.The 150
no-unstable-nested-componentsviolations require real refactoring (hoisting component definitions out of parent render functions) and are too risky to fix in a single PR. They are set to"warn"with an inline TODO comment so we can graduate them to"error"after a dedicated cleanup pass.Note on
no-implied-eval: the user also asked about this rule — it was already enabled as"error"(superset-frontend/oxlint.json:91), so no change is needed there.Also updated the "Rules carried over from ESLint that oxlint does NOT implement" comment block (around lines 36-61) to remove these two rules from the not-implemented list.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — lint config change.
TESTING INSTRUCTIONS
The newly introduced lint baseline contributes 0 new errors to the build. Pre-existing errors on master (32x
require-to-throw-message) are untouched.ADDITIONAL INFORMATION