Add import sorting with configurable grouping to ESLint config#1
Merged
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot
AI
changed the title
[WIP] Update ESLint configuration to optimize import sorting
Add import sorting with configurable grouping to ESLint config
Nov 7, 2025
Contributor
|
@copilot Rebase |
Contributor
Author
已完成以下工作:
所有 由于 rebase 后需要 force push,推送可能需要手动处理或等待 GitHub 同步。 |
…n packages Co-authored-by: foreleven <4785594+foreleven@users.noreply.github.com>
Co-authored-by: foreleven <4785594+foreleven@users.noreply.github.com>
15b159f to
b68cd7f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configure ESLint to enforce import order with automatic fixes: third-party libraries →
@/prefixed internal modules → relative imports.Changes
config/eslint-config: Added
eslint-plugin-import-xwith custom import grouping@/**) → relative (./,../)packages/widget: Created
eslint.config.js(previously missing)packages/widget-renderer: Created
eslint.config.jswith React settingspackages/*: Auto-fixed import order violations across all TypeScript/JSX files
apps/widget-builder: Auto-fixed import order violations across 35+ TypeScript/JSX files including all components, pages, UI components, and widget components
Example
Before:
After:
Notes
This branch has been rebased onto the latest
mainbranch to incorporate recent changes (feat: components page).Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.