Skip to content

Configured to run prettier --write and eslint on committed files #731

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

Conversation

andidev
Copy link
Contributor

@andidev andidev commented Oct 1, 2022

Configured eslint and prettier to run on pre-commit hook with eslint-staged.
Eslint do run the checks without fix parameter while prettier runs with write parameter to auto format before commit.

First option with used in docs
https://prettier.io/docs/en/precommit.html#option-1-lint-stagedhttpsgithubcomokonetlint-staged

@pgrzesik
Copy link
Contributor

pgrzesik commented Oct 3, 2022

Hey @andidev - thanks a lot for the proposal, unfortunately looks like the CI checks are failing, would you be able to look into that?

@pgrzesik
Copy link
Contributor

pgrzesik commented Jan 8, 2023

Hey @andidev - I'm going to close this for the time being, if you're still interested in working on this problem, please let me know and we can reopen 💯

@pgrzesik pgrzesik closed this Jan 8, 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