-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:Configure plug-ins to support this feature #2647
feat:Configure plug-ins to support this feature #2647
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2647 +/- ##
==========================================
- Coverage 76.49% 67.98% -8.52%
==========================================
Files 139 39 -100
Lines 3748 1040 -2708
Branches 872 268 -604
==========================================
- Hits 2867 707 -2160
+ Misses 881 333 -548
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-simple-import-sort": "^8.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are both of these required? I think eslint-plugin-import
is enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I think it can auto fix import order problem.I try to use only eslint-plugin-import but no work.
globals: { | ||
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, | ||
page: true, | ||
REACT_APP_ENV: true, | ||
}, | ||
rules: { | ||
'@typescript-eslint/naming-convention': 'off', | ||
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/', '^@@/'] }], | ||
'sort-imports': 'off', | ||
'import/order': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why turn it off?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid conflict and according to simple-import-sort.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both parts of the modification look fine.
Also cc @SkyeYoung PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* upstream/master: fix: change default CSP value (apache#2601) fix: ant-table unable to request (apache#2641) fix: plugin_config missing on service exist (apache#2657) feat: add etcd store auto re-initialize (apache#2650) feat: add login filter of OpenID-Connect (apache#2608) feat:Configure plug-ins to support this feature (apache#2647) feat: Adding a Loading state to buttons (apache#2630) feat: dashboard support windows (apache#2619) Feat: add tip and preset model for plugin editor, improve e2e stability (apache#2581) docs: add Slack invitation link badge (apache#2617) # Conflicts: # .github/workflows/backend-cli-test.yml # Dockerfile # api/test/shell/cli_test.sh # web/src/components/Footer/index.tsx # web/src/components/RightContent/index.tsx # web/src/pages/ServerInfo/List.tsx
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
I try to configure the two plug-ins to format the import and export.
Related issues
fix/resolve #2646
Checklist: