AllenNeuralDynamics / aind-metadata-entry-js

Metadata entry using javascript
https://metadata-entry.allenneuraldynamics.org
MIT License
1 stars 2 forks source link

Add Git hooks to enforce linting and unit tests #134

Open helen-m-lin opened 7 months ago

helen-m-lin commented 7 months ago

Is your feature request related to a problem? Please describe. As a developer, I want to ensure consistent styling and unit test coverage and automate this process as much as possible.

Describe the solution you'd like Add pre-commit/ pre-push Git hooks to enforce npm run test:coverage and npm run lint:fix

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Husky for Git hooks integrates very well with Jest test runner and ESLint linter for React projects.

helen-m-lin commented 5 months ago

consider also adding githook to run npm audit fix