-
Notifications
You must be signed in to change notification settings - Fork 286
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
Reduce code complexity in GoogleChart
#6029
Labels
Comments
aaemnnosttv
added
P2
Low priority
Type: Enhancement
Improvement of an existing feature
labels
Dec 16, 2022
@nfmohit it should come up later if this didn't happen, but it's probably a good idea to mention removing the related ESLint ignore rule here as well :) (I've updated it for completeness) IB ✅ |
18 tasks
QA Update: ✅Verified:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Description
This is a follow-up of #4895, which introduces the
complexity
rule in ESLint. This resulted in the following lint error:This is the component in question.
While the error is currently ignored, the aim of this issue is to reduce said complexity.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
complexity
should be removed from the component identified in the titleImplementation Brief
google-site-kit/assets/js/components/GoogleChart.js
,complexity
modifiedData
,loadingWidthToUse
,loadingHeightToUse
,combinedChartEvents
, andchartOptions
into individual functions<Chart />
Test Coverage
QA Brief
Changelog entry
GoogleChart
component.The text was updated successfully, but these errors were encountered: