Skip to content
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

Merged

Conversation

veithly
Copy link
Contributor

@veithly veithly commented Oct 20, 2022

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

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:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@guoqqqi guoqqqi requested review from LiteSun and Baoyuantop October 21, 2022 01:29
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Merging #2647 (366f694) into master (7cbdc48) will decrease coverage by 8.51%.
The diff coverage is 100.00%.

❗ Current head 366f694 differs from pull request most recent head 487e385. Consider uploading reports for the commit 487e385 to get more accurate results

@@            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     
Flag Coverage Δ
frontend-e2e-test 67.98% <100.00%> (-8.52%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
web/src/app.tsx 87.87% <ø> (-12.13%) ⬇️
web/src/components/ActionBar/ActionBar.tsx 69.23% <ø> (-15.39%) ⬇️
web/src/components/Footer/index.tsx 100.00% <ø> (ø)
web/src/components/HeaderDropdown/index.tsx 100.00% <ø> (ø)
web/src/components/PanelSection/index.tsx 75.00% <ø> (-25.00%) ⬇️
web/src/components/Plugin/PluginPage.tsx 82.00% <ø> (-17.00%) ⬇️
web/src/components/Plugin/UI/api-breaker.tsx 69.23% <ø> (-5.13%) ⬇️
web/src/components/Plugin/UI/basic-auth.tsx 100.00% <ø> (ø)
web/src/components/Plugin/UI/cors.tsx 71.11% <ø> (-11.12%) ⬇️
web/src/components/Plugin/UI/limit-conn.tsx 92.30% <ø> (ø)
... and 135 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment on lines +71 to +72
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
Copy link
Contributor

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

Copy link
Contributor Author

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',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why turn it off?

Copy link
Contributor Author

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.

Copy link
Member

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.

@guoqqqi
Copy link
Member

guoqqqi commented Oct 24, 2022

Also cc @SkyeYoung PTAL

Copy link
Member

@guoqqqi guoqqqi left a comment

Choose a reason for hiding this comment

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

LGTM

@guoqqqi guoqqqi requested a review from Baoyuantop October 25, 2022 06:14
@guoqqqi guoqqqi merged commit 14ffc58 into apache:master Oct 26, 2022
hongbinhsu added a commit to fitphp/apix-dashboard that referenced this pull request Nov 7, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: support for Eslint import specifications
5 participants