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

chore(server,cli,web): housekeeping and stricter code style #6751

Merged
merged 37 commits into from
Feb 2, 2024

Conversation

etnoy
Copy link
Contributor

@etnoy etnoy commented Jan 30, 2024

Inspiration came from #6747 (comment)

This turned into a housekeeping and code style PR in general

  • Add unicorn eslint rules which makes linting more strict across the whole codebase
  • Bump es version
  • Bump ts version

I've been able to fix a surpring number of bugs with this increased linting!

Copy link

cloudflare-workers-and-pages bot commented Jan 30, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 69e0706
Status: ✅  Deploy successful!
Preview URL: https://2765e23e.immich.pages.dev
Branch Preview URL: https://chore-eslint-unicorn-plugin.immich.pages.dev

View logs

cli/src/commands/upload.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@benmccann benmccann left a comment

Choose a reason for hiding this comment

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

personally, I'm not a fan of the prevent-abbreviations rule. things like dir are so common that everyone knows what they mean and all that typing out directory accomplishes is making things longer

cli/src/commands/upload.command.ts Outdated Show resolved Hide resolved
cli/src/commands/upload.command.ts Outdated Show resolved Hide resolved
@benmccann
Copy link
Contributor

What's the reason for the UUIDParamDto as UIDParameterDto changes?

@etnoy etnoy changed the title chore(server,cli): add unicorn to eslint chore(server,cli,web): housekeeping and stricter code style Feb 1, 2024
@etnoy
Copy link
Contributor Author

etnoy commented Feb 1, 2024

What's the reason for the UUIDParamDto as UIDParameterDto changes?

That's likely an artifact from me running eslint --fix. Thanks for spotting!

@etnoy etnoy marked this pull request as ready for review February 1, 2024 23:55
Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! It looks like a good start and we can tweak and refine moving forward.

@jrasm91 jrasm91 merged commit f44fa45 into main Feb 2, 2024
24 checks passed
@jrasm91 jrasm91 deleted the chore/eslint-unicorn-plugin branch February 2, 2024 03:18
@etnoy
Copy link
Contributor Author

etnoy commented Feb 2, 2024

Thanks for working on this! It looks like a good start and we can tweak and refine moving forward.

Thanks for not being too mad about the mess and size of this pr, lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants