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

camchu/issue 432 integrate husky eslint #435

Conversation

camchu2001
Copy link

@camchu2001 camchu2001 commented Oct 20, 2023

Integrate eslint formatting and commitlint conventions via husky

Issue #432

  • Enforced eslint formatting for staged files - husky pre-commit hook.
  • Enforce commitlint rules - husky commit-msg hook.

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need to use lint-staged, you can use npm run lint from here

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, update the lint script in package.json to "eslint --report-unused-disable-directives .",

"jest": "^29.5.0",
"lint-staged": "^15.0.2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is not needed

@Kpoke Kpoke merged commit ac74b2d into Greenstand:typescript-branch Oct 29, 2023
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