Repository navigation
fix(ci): unblock lint-frontend after the oxlint 1.79.0 bump - #43587
Conversation
|
Bito Automatic Review Skipped - Files Excluded |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43587 +/- ##
=======================================
Coverage 79.10% 79.10%
=======================================
Files 2878 2878
Lines 165651 165651
Branches 38300 38300
=======================================
Hits 131039 131039
Misses 32126 32126
Partials 2486 2486
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
cab82b8 to
5f5ac04
Compare
oxlint 1.79.0 implemented `import/no-named-as-default`, which oxlint.json has always set to "error". It immediately found 94 pre-existing hits and `lint-frontend` has failed on every master commit since. All 94 are modules that intentionally export a symbol both as default and by name, or packages whose documented usage is a default import — not the accidental default-import-of-a-named-export the rule targets. Downgrade it to a warning so CI reflects the codebase's actual intent. Claude-Session: https://claude.ai/code/session_019GApi7TGmxz7bEu97XkFsh
5f5ac04 to
fcdd165
Compare
|
Bito Automatic Review Skipped – PR Already Merged |
SUMMARY
lint-frontendhas failed on every master commit since #43553, and on every open PR, with 94import(no-named-as-default)errors in files nobody touched.Cause: oxlint 1.79.0 (bumped in #43543) implemented
import/no-named-as-default, whichoxlint.jsonhas set to"error"all along. The rule was a no-op before, so 94 pre-existing hits surfaced at once. Bisected against clean master:no-named-as-defaulthitsThe 94 are not real defects. They're modules that intentionally export a symbol both as default and by name (
export const Foo+export default Foo), plus upstream packages whose documented usage is a default import — 39 of the 94 areimport configureStore from 'redux-mock-store', and others areimport $ from 'jquery',import Chart from 'src/types/Chart'. The rule exists to catch an accidental default import of a named-only export, which is not what it found here. Renaming 94 correct call sites to satisfy it would be churn, so the rule is downgraded to"warn".BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — CI-only change, no UI.
TESTING INSTRUCTIONS
From
superset-frontend/, against this branch:The 94 findings still appear as warnings without
--quiet, so they stay visible.ADDITIONAL INFORMATION