Skip to content

build(eslint): disabling wildcard imports with eslint#31761

Merged
rusackas merged 4 commits intomasterfrom
disable-namespace-imports
Jan 14, 2025
Merged

build(eslint): disabling wildcard imports with eslint#31761
rusackas merged 4 commits intomasterfrom
disable-namespace-imports

Conversation

@rusackas
Copy link
Member

@rusackas rusackas commented Jan 9, 2025

SUMMARY

@justinpark adeptly spotted a wildcard input on a PR here. I figured this might be happening elsewhere, so I added a lint rule, and cleaned up the fallout. This should lead to a smaller bundle size, with any luck, or at least better hygiene.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Fix Detected
Functionality Unsafe Date Parsing ▹ view
Readability and Maintainability Avoid ignoring ESLint rule 'no-restricted-syntax'. ▹ view
Functionality Invalid ESLint Disable Comment ▹ view

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Feedback and Support

@rusackas rusackas changed the title build(eslint) disabling wildcard imports with eslint build(eslint): disabling wildcard imports with eslint Jan 9, 2025
@rusackas
Copy link
Member Author

rusackas commented Jan 9, 2025

@jpchev do you mean to see what the rules are? There are various eslint.config.js files in the codebase you can look at.

If you mean you want to run the script to test it, you can check the package.json file for all the npm scripts, but the one you probably want is npm run lint-fix

@rusackas rusackas force-pushed the disable-namespace-imports branch from 23dfabe to 0cc8360 Compare January 9, 2025 20:10
@jpchev
Copy link
Contributor

jpchev commented Jan 9, 2025

@jpchev do you mean to see what the rules are? There are various eslint.config.js files in the codebase you can look at.

If you mean you want to run the script to test it, you can check the package.json file for all the npm scripts, but the one you probably want is npm run lint-fix

yes thank you, anyway
I've seen there is a page about ruff https://superset.apache.org/docs/contributing/howtos#linting

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@rusackas rusackas force-pushed the disable-namespace-imports branch from 0cc8360 to 7e5ae22 Compare January 11, 2025 01:16
Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@mistercrunch
Copy link
Member

Ooops approved twice...

@rusackas rusackas merged commit 8550113 into master Jan 14, 2025
50 checks passed
@rusackas rusackas deleted the disable-namespace-imports branch January 14, 2025 00:25
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels plugins preset-io size/M 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants