strudel-science / strudel-kit

Frontend React templates for implementing scientific UIs with the STRUDEL design system.
https://strudel.science/strudel-kit/docs
Other
8 stars 3 forks source link

Add automated linting and code styling #138

Closed codytodonnell closed 5 days ago

codytodonnell commented 5 days ago

Adds automated code linting with eslint and styling with prettier. These are run on the developer's end on a pre-commit hook using husky. This ensures that all committed code has a consistent style and quality. For quality assurance, there is also a linting step added to the CI workflow. All of this is included inside the baseapp template which has the added benefit of setting this linting up for anyone that uses the baseapp template.

This PR also includes an initial linting and styling sweep over the whole codebase which explains why so many files were touched.