Adds an automatic prettier pre-commit runner #26
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #25
Automatically runs the format and linting before git commits. If the linting fails with errors, the commit is prevented (but can be circumvented with the
--no-verify
option).I took the liberty to add the
trailingComma
prettier rule: it ensures trailing commas are put at the end of every line of array, object and even function definition. This makes it easier to edit arrays and objects to add/remove elements. That is why the PR impacts so many files.For more information: https://github.com/typicode/husky and https://github.com/okonet/lint-staged