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: add pre-commit hook and fix prettier/eslint config #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

panicofr
Copy link
Collaborator

@panicofr panicofr commented Nov 9, 2024

This PR adds a pre-commit hook that run eslint and prettier on staged files.

TODO:

  • add tsc to the toolchain to validate TS typing
  • add stylelint to check style blocks
  • add commitlint to enforce commit messages (?)
  • run tools to format and check all repo files

@panicofr panicofr requested review from oxcened, Trebh and Crish15 November 9, 2024 14:38
@panicofr panicofr self-assigned this Nov 9, 2024
Copy link
Contributor

@oxcened oxcened left a comment

Choose a reason for hiding this comment

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

the rest looks good 🙌

@@ -53,6 +54,7 @@
"@fiscozen/typeahead": "workspace:^",
"@fiscozen/upload": "workspace:^",
"@fiscozen/view-flag": "workspace:^",
"stylelint": "^16.10.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

should be a dev dependency, this applies to all packages

@panicofr panicofr requested review from oxcened and Crish15 November 12, 2024 21:17
"author": "Alen Ajam",
"dependencies": {
"@fiscozen/navlink": "workspace:^",
"stylelint": "^16.10.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

reminder that stylelint should be a dev dependency in all packages

"nx": "17.2.8",
"plop": "^4.0.1",
"vitest": "^1.0.4"
},
"dependencies": {
"lint-staged": "^15.2.10"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would make this a dev one as well

chore(prettier): update prettier config

chore: add husky config

chore: fix prettier and eslint config

chore: add precommit hook

chore(stylelint-config): add stylelint config

fix: fix script config

chore: add stylelint config

chore(LIB-353): revert lint-staged checks

fix: fix storybook deps

chore: add vue-tsc step
@panicofr panicofr force-pushed the LIB-353-precommit-hooks branch from 9268c63 to 975cc4c Compare January 14, 2025 07:45
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