Resolve #75
To have consistent formatting across the project and facilitate maintenance and contributions I've added prettier (with an import-statements sorting plugin to improve readability) and git-hooks support with husky.
Git hooks with husky formats code and blocks commits until all the desired conditions are met.
The current configuration formats, lints and tests code, before allowing users to commit changes.
Further improvements to the dev-x and contributions could be added by making the repo commitizen friendly
The above message has been included in the commit's description.
The changelog has been updated to reflect the changes, with the version Unreleased to facilitate library moderation.
The prettier configuration mimicks the state of the current codebase.
The added dependencies are development dependencies.
After merging, make sure to run yarn format project-wise. CHANGELOG has been exempted from formatting, although eligible.
Resolve #75 To have consistent formatting across the project and facilitate maintenance and contributions I've added
prettier
(with an import-statements sorting plugin to improve readability) and git-hooks support withhusky
.Git hooks with
husky
formats code and blocks commits until all the desired conditions are met. The current configuration formats, lints and tests code, before allowing users to commit changes.Further improvements to the dev-x and contributions could be added by making the repo commitizen friendly
The above message has been included in the commit's description. The changelog has been updated to reflect the changes, with the version Unreleased to facilitate library moderation. The prettier configuration mimicks the state of the current codebase.
The added dependencies are development dependencies.
After merging, make sure to run
yarn format
project-wise. CHANGELOG has been exempted from formatting, although eligible.