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

Adding Pre-commit Hooks & Improving Prettier/ESLint rules #439

Merged
merged 11 commits into from
Dec 2, 2024

Conversation

BboyAkers
Copy link
Member

@BboyAkers BboyAkers commented Dec 2, 2024

Overview

  • Added 'husky' for pre-commit hooks
    • "prettier --write --ignore-unknown" & "eslint --fix" run as pre-commit hooks
  • Updated/Configured Prettier and ESLint rules
  • Updated min node version to 20.18.0

@BboyAkers BboyAkers marked this pull request as ready for review December 2, 2024 21:37
.prettierrc Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Dec 2, 2024

@BboyAkers
Copy link
Member Author

@kriszyp Updated PR 🙂

"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "es5",
"useTabs": true,
Copy link
Member

Choose a reason for hiding this comment

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

I presume you are going to have a lot of whitespace updates in your commits going forward with this. Do you want that?

Copy link
Member Author

@BboyAkers BboyAkers Dec 2, 2024

Choose a reason for hiding this comment

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

Hmmm 🤔 I'll look into:

  • Creating a separate PR running prettier & ESLint on the entire app
    and/or
  • Investigating if it's possible to run prettier and not affect the git history

Copy link
Member

Choose a reason for hiding this comment

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

Usually the strategy is to add (mass) prettier/lint commits in .git-blame-ignore-revs: https://github.com/HarperDB/harperdb/blob/main/.git-blame-ignore-revs
I just didn't know if you really wanted to do that right now.

@BboyAkers BboyAkers merged commit a71fc35 into stage Dec 2, 2024
2 checks passed
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.

2 participants