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

Add eslint and prettier with git hooks integration #109

Merged
merged 4 commits into from
Nov 9, 2020

Conversation

louisnow
Copy link
Contributor

@louisnow louisnow commented Nov 8, 2020

Fixes #108

@louisnow louisnow changed the title Dev/linting Eslint with prettier with git hooks integration Nov 8, 2020
@louisnow louisnow changed the title Eslint with prettier with git hooks integration Add eslint and prettier with git hooks integration Nov 8, 2020
@louisnow
Copy link
Contributor Author

louisnow commented Nov 8, 2020

Only the changes you've staged or the ones that are going to be in the commit are going to be automatically formatted. This keeps things fast.
Here's what the precommit hook looks like when you make a change to a relevant file. (*.js and *.md)
2020-11-08-201550_444x197_scrot

Here's what it looks like if there's an error
2020-11-08-173737_974x387_scrot

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.

Support standard formatting options eslint and prettier which automatically fix code on commit
2 participants