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

fix: lint errors #420

Merged
merged 5 commits into from
Apr 30, 2020
Merged

fix: lint errors #420

merged 5 commits into from
Apr 30, 2020

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Apr 29, 2020

🐛 Bug Fix

  • Resolve type warnings from eslint
  • Reduced from 274 errors to 198 errors

@kristw kristw requested a review from a team as a code owner April 29, 2020 22:29
@vercel
Copy link

vercel bot commented Apr 29, 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/auacwd1qo
✅ Preview: https://superset-ui-git-kristw-fix-lint.superset.now.sh

@codecov
Copy link

codecov bot commented Apr 30, 2020

Codecov Report

Merging #420 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #420   +/-   ##
=======================================
  Coverage   22.28%   22.28%           
=======================================
  Files         261      261           
  Lines        6474     6474           
  Branches      587      587           
=======================================
  Hits         1443     1443           
  Misses       4994     4994           
  Partials       37       37           
Impacted Files Coverage Δ
...s/superset-ui-chart-composition/src/ChartFrame.tsx 100.00% <ø> (ø)
...es/superset-ui-chart/src/components/SuperChart.tsx 100.00% <ø> (ø)
...-ui-chart/src/components/createLoadableRenderer.ts 100.00% <ø> (ø)
...superset-ui-connection/test/utils/throwIfCalled.ts 100.00% <ø> (ø)
packages/superset-ui-core/src/models/Plugin.ts 100.00% <ø> (ø)
packages/superset-ui-core/src/utils/isDefined.ts 100.00% <ø> (ø)
...ckages/superset-ui-core/src/utils/makeSingleton.ts 100.00% <ø> (ø)
plugins/legacy-plugin-chart-heatmap/src/Heatmap.js 0.00% <ø> (ø)
...ins/legacy-plugin-chart-horizon/src/HorizonRow.jsx 0.00% <ø> (ø)
...lugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx 0.00% <ø> (ø)
... and 15 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 f72e2d6...daa0d4c. Read the comment docs.

@kristw kristw added the reviewable Ready for review label Apr 30, 2020
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.

@kristw LGTM, but wondered if you checked to see if any any of the remaining // eslint-disable-next-line @typescript-eslint/no-explicit-any lines could be removed by changing any types to unknown

@kristw
Copy link
Contributor Author

kristw commented Apr 30, 2020

@rusackas The one I'm disabling here broke when it is changed to unknown. I'm not sure how best to define the plain object type { [key: string]: any } that won't break. If you have suggestion, please let me know.

@rusackas
Copy link
Member

@rusackas The one I'm disabling here broke when it is changed to unknown. I'm not sure how best to define the plain object type { [key: string]: any } that won't break. If you have suggestion, please let me know.

Ok, I figured you tried it, but thought I should ask :P I don't have any better suggestions, sadly.

@kristw kristw merged commit cb54e5a into master Apr 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the kristw--fix-lint branch April 30, 2020 20:50
technologicwoman pushed a commit to oashton/superset-ui that referenced this pull request Sep 29, 2020
* feat: migrate xy-chart to use encodable (apache-superset#420)

* feat: use encodable in BoxPlot

* feat: migrate legend

* docs: update storybook

* fix: label overlap

* fix: lint

* fix: remove comments

* fix: path

* feat: migrate scatterplot to use encodable (apache-superset#421)

* feat: migrate scatter plot

(cherry picked from commit 0d607a60cdab8037ece7f29a74bef1c0a5432c5d)

* fix: legend

* feat: migrate line chart to use encodable (apache-superset#427)

* feat: migrate line to use encodable

* fix: storybook ts

* fix: remove comment

* refactor: delete deprecated files (apache-superset#430)

* refactor: delete outdated files

* feat: update index exports and add test

* refactor: delete more files

* fix: import order

* fix: update dependency

* fix: update dependency

* build: fix babel

* fix: remvoe comments

* fix: babel

* refactor: move files (apache-superset#432)

* refactor: move files

* refactor: move files

* fix: small issues with charts post-migration (apache-superset#433)

* fix: scatterplot issue

* fix: bump encodable and fix time scale nicing

* fix: issue with label rotation

* refactor: remove deep import

* fix: demo import

* feat: bump and remove unnecessary dependencies (apache-superset#436)

* feat: bump dependencies

* feat: remove unnecessary dependencies
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
reviewable Ready for review size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants