Skip to content

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

Merged
BboyAkers merged 11 commits into
stagefrom
akers/pre-commit-hooks
Dec 2, 2024
Merged

Adding Pre-commit Hooks & Improving Prettier/ESLint rules#439
BboyAkers merged 11 commits into
stagefrom
akers/pre-commit-hooks

Conversation

@BboyAkers

@BboyAkers BboyAkers commented Dec 2, 2024

Copy link
Copy Markdown
Member

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
Comment thread .prettierrc Outdated
Comment thread package.json
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2024

Copy link
Copy Markdown

@BboyAkers

Copy link
Copy Markdown
Member Author

@kriszyp Updated PR 🙂

Comment thread .prettierrc
"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "es5",
"useTabs": true,

Copy link
Copy Markdown
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?

@BboyAkers BboyAkers Dec 2, 2024

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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
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