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

fix: lint again #447

Merged
merged 8 commits into from
May 7, 2020
Merged

fix: lint again #447

merged 8 commits into from
May 7, 2020

Conversation

kristw
Copy link
Contributor

@kristw kristw commented May 7, 2020

🏠 Internal

Fix another hundred or so of lint warnings. Down from 199 warnings to < 10.

@kristw kristw requested a review from a team as a code owner May 7, 2020 00:07
@vercel
Copy link

vercel bot commented May 7, 2020

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/kx48zkosu
✅ Preview: https://superset-ui-git-kristw-fix-lint-again.superset.now.sh

@codecov
Copy link

codecov bot commented May 7, 2020

Codecov Report

Merging #447 into master will decrease coverage by 0.07%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #447      +/-   ##
==========================================
- Coverage   22.25%   22.17%   -0.08%     
==========================================
  Files         265      265              
  Lines        6521     6549      +28     
  Branches      591      597       +6     
==========================================
+ Hits         1451     1452       +1     
- Misses       5033     5060      +27     
  Partials       37       37              
Impacted Files Coverage Δ
...ckages/superset-ui-chart/src/models/ChartPlugin.ts 100.00% <ø> (ø)
...ages/superset-ui-connection/src/callApi/callApi.ts 100.00% <ø> (ø)
...s/legacy-plugin-chart-table/src/ReactDataTable.tsx 64.86% <ø> (ø)
plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js 0.00% <0.00%> (ø)
...eset-chart-xy/src/BoxPlot/legacy/transformProps.ts 0.00% <0.00%> (ø)
...gins/preset-chart-xy/src/BoxPlot/transformProps.ts 0.00% <0.00%> (ø)
...-chart-xy/src/ScatterPlot/legacy/transformProps.ts 0.00% <0.00%> (ø)
...preset-chart-xy/src/components/BoxPlot/BoxPlot.tsx 0.00% <ø> (ø)
...ugins/preset-chart-xy/src/components/Line/Line.tsx 0.00% <ø> (ø)
...hart-xy/src/components/ScatterPlot/ScatterPlot.tsx 0.00% <ø> (ø)
... and 4 more

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 0483db6...db508f1. Read the comment docs.

@@ -18,7 +18,7 @@ const EMPTY = {};

export type PromiseOrValue<T> = Promise<T> | T;
export type PromiseOrValueLoader<T> = () => PromiseOrValue<T>;
export type ChartType = ComponentType<any> | FunctionComponent<any>;
export type ChartType = ComponentType<any>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ComponentType already includes FunctionComponent

const { colorScheme, groupby, metrics } = formData;
const { colorScheme } = formData;
const groupby = formData.groupby as string[];
const metrics = formData.metrics as string[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe expand the ChartProps like BigNumber for consistency?

I'm wondering whether we can add these generic formData properties to the global formData, too. They would go hand-in-hand with the shared controls.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea.

@ktmud
Copy link
Contributor

ktmud commented May 7, 2020

Btw, why does superset-ui-connection has it's own eslintrc?

@kristw
Copy link
Contributor Author

kristw commented May 7, 2020

Btw, why does superset-ui-connection has it's own eslintrc?

Good question. I do not remember about this either. cc @williaster who wrote the connection package

@kristw kristw merged commit ce0e23c into master May 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the kristw--fix-lint-again branch May 7, 2020 19:53
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Late to the party, but went through this for the record, and LGTM.

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.

None yet

3 participants