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

Declare prettier as dependency of pre-commit hook #641

Merged
merged 11 commits into from
Feb 27, 2024

Conversation

brucellino
Copy link
Member

@brucellino brucellino commented Feb 26, 2024

Summary

This adds prettier as a dependency of the prettier pre-commit hook.

Turns out that the prettier configuration wants to be exported as a module, so the additional-dependencies in the pre-commit config don't get picked up.

I've declared explicit versions of Prettier for the pre-commit hook and added a devDependencies key in the package.json which was missing.

Related issue :

Closed #640

@brucellino
Copy link
Member Author

woops. Looks like I didn't discard the intermediate commits. Hope you squash this?

@brucellino
Copy link
Member Author

@sebastian-luna-valero ready for review.

Copy link
Member

@sebastian-luna-valero sebastian-luna-valero left a comment

Choose a reason for hiding this comment

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

Working for me, many thanks!

Copy link
Contributor

@enolfc enolfc left a comment

Choose a reason for hiding this comment

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

Working locally so good to go

@enolfc enolfc merged commit 2867095 into EGI-Federation:main Feb 27, 2024
8 checks passed
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.

Prettier should be declared as pre-commit dependency
3 participants