Skip to content

fix(ci): unblock lint-frontend after the oxlint 1.79.0 bump - #43587

Merged
msyavuz merged 1 commit into
apache:masterfrom
msyavuz:msyavuz/fix/oxlint-no-named-as-default
Aug 27, 2026
Merged

msyavuz merged 1 commit into
apache:masterfrom
msyavuz:msyavuz/fix/oxlint-no-named-as-default

Conversation

@msyavuz

@msyavuz msyavuz commented Aug 27, 2026

Copy link
Copy Markdown
Member

SUMMARY

lint-frontend has failed on every master commit since #43553, and on every open PR, with 94 import(no-named-as-default) errors in files nobody touched.

Cause: oxlint 1.79.0 (bumped in #43543) implemented import/no-named-as-default, which oxlint.json has set to "error" all along. The rule was a no-op before, so 94 pre-existing hits surfaced at once. Bisected against clean master:

oxlint exit no-named-as-default hits
1.78.0 0 0
1.79.0 1 94

The 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 are import configureStore from 'redux-mock-store', and others are import $ 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:

npx [email protected] --config oxlint.json --quiet ; echo $?   # 0 (was 1 on master)

The 94 findings still appear as warnings without --quiet, so they stay visible.

ADDITIONAL INFORMATION

  • Has associated issue: No
  • Required feature flags: None
  • Changes UI: No — lint config only
  • Includes DB Migration: No
  • Introduces new feature or API: No
  • Removes existing feature or API: No — the rule still reports, at warning level

@bito-code-review

bito-code-review Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at [email protected].

@codecov

codecov Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.10%. Comparing base (b71293a) to head (fcdd165).
⚠️ Report is 6 commits behind head on master.

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           
Flag Coverage Δ
javascript 74.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@msyavuz msyavuz closed this Aug 27, 2026
@msyavuz msyavuz reopened this Aug 27, 2026
@msyavuz
msyavuz force-pushed the msyavuz/fix/oxlint-no-named-as-default branch from cab82b8 to 5f5ac04 Compare August 27, 2026 12:24
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
@msyavuz
msyavuz force-pushed the msyavuz/fix/oxlint-no-named-as-default branch from 5f5ac04 to fcdd165 Compare August 27, 2026 12:24
@msyavuz
msyavuz merged commit fde0fbd into apache:master Aug 27, 2026
80 checks passed
@bito-code-review

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped – PR Already Merged

Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.
No action is needed if you didn't intend to review it. To get a review, you can type /review in a comment and save it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants