-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update @balena/lint to v8.2.7 #107
Conversation
a86df8f
to
0ca39ea
Compare
@@ -17,7 +17,7 @@ export const fetchProcessing: TypeUtils.FetchProcessing<Types['Read']> = ( | |||
) => { | |||
if (data != null) { | |||
// We append the date of the epoch so that we can parse this as a valid date. | |||
return new Date('Thu, 01 Jan 1970 ' + data).toISOString(); | |||
return new Date(`Thu, 01 Jan 1970 ${data}`).toISOString(); |
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.
Changing this because of @typescript-eslint/restrict-plus-operands
ecf2e5e
to
4030ebb
Compare
0ca39ea
to
3975e8f
Compare
src/index.ts
Outdated
@@ -82,6 +82,6 @@ export default { | |||
}; | |||
SHA: SbvrType & { | |||
validateSync: (value: string) => string; | |||
compare: (str: string, hash: string) => Promise<boolean>; | |||
compare: (str: string, hash: string) => Promise<boolean> | boolean; |
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.
This is a breaking change because doing
sbvrTypes.SHA.compare(...).then(...)
would start to throw. In practice in most cases it'll probably be fine, eg await ...
or .then(() => sbvrTypes.SHA.compare(...))
but it's not guaranteed
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.
Ok, I've reverted that change. So we'll still have 1 lint warning, but I'd rather that than a breaking change in this PR.
3975e8f
to
c6b6713
Compare
Change-type: patch
c6b6713
to
630ca7d
Compare
Change-type: patch
This updates balena lint and resolves most linting errors/warnings.