chore(lint): scope in-repo eslint plugins under @superset-ui - #43054
chore(lint): scope in-repo eslint plugins under @superset-ui#43054KHARSHAVARDHAN-eng wants to merge 5 commits into
Conversation
Code Review Agent Run #d12871Actionable 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 #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
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:
|
|
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); |
There was a problem hiding this comment.
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', () => ({ |
There was a problem hiding this comment.
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>
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
SUMMARY
Namespaces in-repo ESLint plugins (
eslint-plugin-i18n-strings,eslint-plugin-icons,eslint-plugin-theme-colors) under the@superset-uiscope to prevent npm registry name shadowing and phantom security audit flags.Fixes #42982
TESTING INSTRUCTIONS
npm run lintandnpm run lint-stats.ADDITIONAL INFORMATION