-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 🙌
apps/storybook/package.json
Outdated
@@ -53,6 +54,7 @@ | |||
"@fiscozen/typeahead": "workspace:^", | |||
"@fiscozen/upload": "workspace:^", | |||
"@fiscozen/view-flag": "workspace:^", | |||
"stylelint": "^16.10.0", |
There was a problem hiding this comment.
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
"author": "Alen Ajam", | ||
"dependencies": { | ||
"@fiscozen/navlink": "workspace:^", | ||
"stylelint": "^16.10.0" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
9268c63
to
975cc4c
Compare
This PR adds a pre-commit hook that run eslint and prettier on staged files.
TODO:
add tsc to the toolchain to validate TS typingadd stylelint to check style blocks