Skip to content
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

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

joshbwlng
Copy link
Contributor

@joshbwlng joshbwlng commented Jul 31, 2024

Change-type: patch


This updates balena lint and resolves most linting errors/warnings.

@joshbwlng joshbwlng self-assigned this Jul 31, 2024
@joshbwlng joshbwlng force-pushed the joshbwlng/balena-lint branch from a86df8f to 0ca39ea Compare July 31, 2024 22:33
@@ -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();
Copy link
Contributor Author

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

@joshbwlng joshbwlng requested a review from Page- July 31, 2024 22:34
@flowzone-app flowzone-app bot enabled auto-merge July 31, 2024 22:36
@joshbwlng joshbwlng force-pushed the joshbwlng/balena-lint branch from 0ca39ea to 3975e8f Compare August 2, 2024 07:16
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;
Copy link
Collaborator

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

Copy link
Contributor Author

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.

@joshbwlng joshbwlng force-pushed the joshbwlng/balena-lint branch from 3975e8f to c6b6713 Compare August 2, 2024 21:49
@joshbwlng joshbwlng requested a review from Page- August 2, 2024 21:51
Change-type: patch
@joshbwlng joshbwlng force-pushed the joshbwlng/balena-lint branch from c6b6713 to 630ca7d Compare August 2, 2024 22:48
@joshbwlng joshbwlng requested a review from a team August 5, 2024 05:19
@flowzone-app flowzone-app bot merged commit b88af85 into master Aug 5, 2024
52 checks passed
@flowzone-app flowzone-app bot deleted the joshbwlng/balena-lint branch August 5, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants