Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

chore: fix end-of-file #1468

Merged
merged 9 commits into from
Nov 15, 2021
Merged

Conversation

zhaoyongjie
Copy link
Contributor

@zhaoyongjie zhaoyongjie commented Nov 12, 2021

🏠 Internal

  • move job Run ESLint before Build packages(in order to lint frontend file without build package)
  • update .lintrc, make .lintrc consistency of main repo
  • add 'import/internal-regex' and 'import/core-modules' into .lintrc(disallow import from /lib)
  • add EOF in every files(pre-commit required)
  • compress large image(pre-commit required)
  • move test/enzyme into plugins/plugin-chart-table/test/TableChart.test.tsx
  • export DEFAULT_FORM_DATA as TimeseriesDefaultFormData from plugin-chart-echarts
  • add "allowJs": false into parallel-coordinates tsconfig("allowJs": true is default in main repo )
  • add Apache License into README.md and CHANGELOG.md

@zhaoyongjie zhaoyongjie requested a review from a team as a code owner November 12, 2021 14:43
@vercel
Copy link

vercel bot commented Nov 12, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/superset/superset-ui/AEYzh6bo9S1qQZ1QQUhBHn33dD12
✅ Preview: https://superset-ui-git-fork-zhaoyongjie-eoffixer-superset.vercel.app

@zhaoyongjie zhaoyongjie changed the title Chore: end of file fixer chore: end of file fixer Nov 12, 2021
@codecov
Copy link

codecov bot commented Nov 12, 2021

Codecov Report

Merging #1468 (b248f80) into master (5928355) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1468   +/-   ##
=======================================
  Coverage   30.91%   30.91%           
=======================================
  Files         502      502           
  Lines       10220    10220           
  Branches     1762     1762           
=======================================
  Hits         3160     3160           
  Misses       6808     6808           
  Partials      252      252           
Impacted Files Coverage Δ
packages/superset-ui-chart-controls/src/types.ts 100.00% <ø> (ø)
...kages/superset-ui-core/src/query/getColumnLabel.ts 100.00% <ø> (ø)
plugins/plugin-chart-table/test/enzyme.tsx 57.14% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5928355...b248f80. Read the comment docs.

@zhaoyongjie zhaoyongjie changed the title chore: end of file fixer chore: fix end-of-file Nov 12, 2021
@stephenLYZ
Copy link
Contributor

LGTM

Copy link
Contributor

@villebro villebro left a comment

Choose a reason for hiding this comment

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

Minor comment, other than that LGTM

@@ -39,6 +39,38 @@ module.exports = {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
// Allow core/src and core/test, not import modules from lib
'import/internal-regex': /^@superset-ui\/core\/(src|test)/,
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be 'import/internal-regex': /^@superset-ui\/([\w-]+)\/(src|test)/, to match all packages/plugins?

Copy link
Contributor Author

@zhaoyongjie zhaoyongjie Nov 15, 2021

Choose a reason for hiding this comment

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

I think we should avoid import packages like this:
@superset-ui/chart-controls/(src|test)/....
instead of
@superset-ui/chart-controls

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants