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

Eslint & Prettier setup and some lint error fixes #6717

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

royallsilwallz
Copy link
Contributor

What type of PR is this?

  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor

Describe this PR

Changes

  • Setup and configure latest eslint and prettier
  • Auto fix fixable lint errors using yarn lint --fix
  • Manually fix no-unused-vars eslint errors
  • Create TODOS.md for tracking remaining tasks

- Upgrade eslint to v9
- Upgrade prettier to v3
- Setup config files with latest standards
@github-actions github-actions bot added dependencies Pull requests that update a dependency file scope: frontend labels Jan 26, 2025
- Address `no-unused-vars` lint errors
@royallsilwallz royallsilwallz force-pushed the fix/typescript-vite-issues branch from b8f5f4c to 7b20d10 Compare January 26, 2025 19:47
@royallsilwallz royallsilwallz force-pushed the fix/typescript-vite-issues branch from 7b20d10 to 442f8f9 Compare January 26, 2025 20:06
Copy link
Collaborator

@JoltCode JoltCode left a comment

Choose a reason for hiding this comment

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

All good, spotted 1 small potential issue, but apart from that, perfect - LGTM!

noBg?: boolean;
},
) => {
const { ...rest } = props;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The destructuring should still be here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoa! nice catch Joe. I'll update it! πŸš€

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
4.0% Duplication on New Code (required ≀ 3%)
B Reliability Rating on New Code (required β‰₯ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@JoltCode
Copy link
Collaborator

@royallsilwallz LGTM! βœ…

@royallsilwallz royallsilwallz merged commit a076ed6 into typescript-vite Jan 27, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file scope: frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants