USDAForestService / NRM-Grants-Agreements

The focal point for an 18F/TTS collaboration with the USFS Natural Resource Manager (NRM)
Other
8 stars 2 forks source link

Add pre-commit hooks to run Prettier (code style) #405

Closed beechnut closed 2 years ago

beechnut commented 2 years ago

Background The number of times I've pushed un-Prettier'd code and had to re-run and re-push is...at least ten at this point.

Proposed Solution Adds Husky as a git hooks manager, then adds hooks to run Prettier to enforce code style on all source TypeScript files in api and frontend.