Skip to content

chore(lint): scope in-repo eslint plugins under @superset-ui - #43054

Open
KHARSHAVARDHAN-eng wants to merge 5 commits into
apache:masterfrom
KHARSHAVARDHAN-eng:chore/scope-in-repo-eslint-plugins
Open

chore(lint): scope in-repo eslint plugins under @superset-ui#43054
KHARSHAVARDHAN-eng wants to merge 5 commits into
apache:masterfrom
KHARSHAVARDHAN-eng:chore/scope-in-repo-eslint-plugins

Conversation

@KHARSHAVARDHAN-eng

Copy link
Copy Markdown

SUMMARY

Namespaces in-repo ESLint plugins (eslint-plugin-i18n-strings, eslint-plugin-icons, eslint-plugin-theme-colors) under the @superset-ui scope to prevent npm registry name shadowing and phantom security audit flags.

Fixes #42982

TESTING INSTRUCTIONS

  1. Run npm run lint and npm run lint-stats.

ADDITIONAL INFORMATION

@bito-code-review

bito-code-review Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #d12871

Actionable Suggestions - 0
Review Details
  • Files reviewed - 5 · Commit Range: a87141d..4b45c0b
    • scripts/check-type.js
    • superset-frontend/eslint-rules/eslint-plugin-i18n-strings/index.ts
    • superset-frontend/eslint.config.minimal.js
    • superset-frontend/src/pages/AlertReportList/AlertReportList.test.tsx
    • superset-frontend/src/pages/AlertReportList/index.tsx
  • Files skipped - 5
    • superset-frontend/eslint-rules/eslint-plugin-i18n-strings/package.json - Reason: Filter setting
    • superset-frontend/eslint-rules/eslint-plugin-icons/package.json - Reason: Filter setting
    • superset-frontend/eslint-rules/eslint-plugin-theme-colors/package.json - Reason: Filter setting
    • superset-frontend/package-lock.json - Reason: Filter setting
    • superset-frontend/package.json - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.61%. Comparing base (5ee2793) to head (925d6cf).
⚠️ Report is 64 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #43054      +/-   ##
==========================================
+ Coverage   66.55%   66.61%   +0.05%     
==========================================
  Files        2864     2866       +2     
  Lines      161894   162682     +788     
  Branches    37305    37466     +161     
==========================================
+ Hits       107748   108364     +616     
- Misses      52100    52219     +119     
- Partials     2046     2099      +53     
Flag Coverage Δ
hive 38.20% <ø> (+0.04%) ⬆️
javascript 73.64% <100.00%> (+<0.01%) ⬆️
mysql 57.88% <ø> (+0.20%) ⬆️
postgres 57.91% <ø> (+0.17%) ⬆️
presto 40.15% <ø> (+0.03%) ⬆️
python 59.30% <ø> (+0.17%) ⬆️
sqlite 57.55% <ø> (+0.18%) ⬆️
unit 100.00% <ø> (ø)

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.

@rusackas

Copy link
Copy Markdown
Member

Maybe @hainenber would want to take a look at this one?

fix(fixer) {
const source = context.getSourceCode().getText(prop.value);
const sourceCode = context.sourceCode || context.getSourceCode();
const source = sourceCode.getText(prop.value);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a rationale for this change? Isnt the PR supposed for scope limitstion of running custom lint rules?

}));

// Mock withToasts HOC to inject default toast functions while preserving explicit test spies passed via props
jest.mock('src/components/MessageToasts/withToasts', () => ({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these changes in the test files?

…n ordering

- Cast merged withToasts mock props to the generic prop type P before
  spreading onto Component, fixing a TS2322 error in
  AlertReportList.test.tsx (npm run type).
- Reorder the newly added @superset-ui/eslint-plugin-* devDependencies
  alphabetically in package.json to satisfy oxfmt (pre-commit).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 925d6cf
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a7d39ef76b3290008a79ed5
😎 Deploy Preview https://deploy-preview-43054--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Labels

dependencies:npm risk:ci-script PR modifies scripts that execute in CI (supply chain risk) size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(lint): scope in-repo eslint plugins so they cannot be shadowed by public names

3 participants