-
Notifications
You must be signed in to change notification settings - Fork 306
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
HPCC-33403 Bump eslint to latest version #19504
base: candidate-9.2.x
Are you sure you want to change the base?
HPCC-33403 Bump eslint to latest version #19504
Conversation
Fix some of the obvious linting flags Signed-off-by: Gordon Smith <[email protected]>
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-33403 Jirabot Action Result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GordonSmith just a couple things I noticed. I wasn't sure about the change in metricArchive, if that reducer function might get weird values without the ?? 0
.
"MinSkew": { label: nlsHPCC.MinSkew, type: "string", value: `${Utility.formatDecimal(file?.Stat?.MinSkewInt64 ?? 0 / 100)}%`, readonly: true }, | ||
"MaxSkew": { label: nlsHPCC.MaxSkew, type: "string", value: `${Utility.formatDecimal(file?.Stat?.MaxSkewInt64 ?? 0 / 100)}%`, readonly: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe this change is correct. The / 100
should be to the left of ??
@@ -107,7 +107,7 @@ export class Archive { | |||
} | |||
this.sourcePath_Metrics[definition.filePath].add(metric.id); | |||
}); | |||
return prev + totalTime ?? 0; | |||
return prev + totalTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this result in something unexpected like NaN
getting returned (doing arithmetic with null or undefined)?
Fix some of the obvious linting flags
Type of change:
Checklist:
Smoketest:
Testing: