postiz-app icon indicating copy to clipboard operation
postiz-app copied to clipboard

Configure Husky to run eslint on staged files before commit

Open caushcani opened this issue 1 year ago • 4 comments

🔖 Feature description

By integrating Husky with lint-staged, we can ensure that only code that passes ESLint checks is committed, helping to maintain consistent code quality and style across the repository. Also, we don't have to fix eslint warning after we open a PR. Let's solve it locally, then do a PR.

🎤 Why is this feature needed ?

To ensure that all code meets the linting standards before it's committed, reducing the need for last-minute fixes and ensuring a smoother, more consistent PR process. This helps maintain high code quality throughout development

✌️ How do you aim to achieve this?

  1. Install Husky and lint-staged
  2. Set up Husky pre-commit hook

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

caushcani avatar Dec 13 '24 14:12 caushcani

@nevo-david, if you think this would help the project, I can start working on the implementation and submit a PR. Otherwise, I can close this issue.

caushcani avatar Dec 13 '24 23:12 caushcani

@caushcani feel free to try it, but it might not compile the project you would need to do some changes :)

nevo-david avatar Dec 14 '24 13:12 nevo-david

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar May 05 '25 15:05 github-actions[bot]

https://github.com/user-attachments/assets/c03f2889-7846-40fb-93d2-d8e757f75c4f

01914240225 avatar May 08 '25 22:05 01914240225

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Aug 07 '25 06:08 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Aug 14 '25 06:08 github-actions[bot]