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

Maintenance: Upgraded all packages. #630

Merged
merged 11 commits into from
Aug 16, 2024
Merged

Conversation

buffet-time
Copy link
Member

What

maintenance: upgraded all packages, many changes for ESLint 9 migration, and many imports that were remove

Acceptance

Steps for testing

things arent borked.

Copy link

netlify bot commented Aug 9, 2024

Deploy Preview for lbgg ready!

Name Link
🔨 Latest commit 910dd69
🔍 Latest deploy log https://app.netlify.com/sites/lbgg/deploys/66beb6c6c69af60008c8e32f
😎 Deploy Preview https://deploy-preview-630--lbgg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@TheTedder TheTedder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to disable globals in the test config if we're not going to use them anymore.

package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
Copy link
Contributor

@erunks erunks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things mostly look good, just curious about those few things I pointed out. Also I know why you mentioned you want to do explicit imports, but I do feel like having the vitest blocks being global is a pretty standard thing for most repos, and it feels kinda backwards here

@@ -18,8 +18,7 @@ interface ForgotPasswordCardState {
}

const emit = defineEmits<{
(event: 'close'): void
(event: 'cancelClick'): void
(event: 'close' | 'cancelClick'): void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this imply that we only define one emitted event, as opposed to two like before? Or are TS and Nuxt smart enough to know to create two?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it was an eslint suggestion and i was suspicious myself, but it works. My guess is that it just reads it and sees the string passed it up

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not prioritize the linter over whatever the commonly accepted pattern is. I feel like this could lead to issues when trying to use certain features of vue but I'm not sure. I suppose if it works and the tests all pass then it's all good.

(event: 'close'): void
(event: 'forgotPasswordClick'): void
(event: 'signUpClick'): void
(event: 'close' | 'forgotPasswordClick' | 'signUpClick'): void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read above

(event: 'close'): void
(event: 'logInClick'): void
(event: 'signUpClick'): void
(event: 'close' | 'logInClick' | 'signUpClick'): void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

@@ -15,6 +15,7 @@ export async function useConfirmAccount(
baseUrl: useRuntimeConfig().public.backendBaseUrl,
})

// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we can get around having to do this by updating the composable, but this is fine for now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Make an issue for it.

@@ -54,6 +55,8 @@ describe('useApi', () => {
})

expect(onErrorSpy).toBeCalledTimes(1)
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking this instruction up, I'm not sure why we need this here. I don't see why the compiler would think the next line would be an error... 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya i'm not sure either, We can always go back and fix later as its not causing any errors it seems

Comment on lines -69 to -75
- name: Cache build
uses: actions/cache@v3
id: cache-build
with:
path: .nuxt/
key: ${{ runner.os }}-build-${{ hashFiles('**/.nuxt') }}
restore-keys: ${{ runner.os }}-build-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we're removing the caching step from the process?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't seem to work anymore, and not sure the benefit of caching builds specifically anyways as its good to have the build run in a roughly known good environment of CI

Copy link
Contributor

@erunks erunks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid 💪

@buffet-time buffet-time merged commit fd0d83e into main Aug 16, 2024
13 checks passed
@buffet-time buffet-time deleted the maintenance-packages-8-8-2024 branch August 16, 2024 02:22
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