We use linting, auto-formatting, and type-checking to ensure our code is well-structured and (mostly) functional. All of these checks can (and should) be run locally and will also be enforced as part of our GitHub Action workflow.
To run all the checks in the web repo:
npm run check
Or to run a specific check:
npm run check:format
- prettiernpm run check:lint
- eslintnpm run check:svelte
- svelte/typescript
Note that the format and lint checks both run in "fix" mode, meaning they will make changes to your code wherever possible to fix errors (e.g. removing extra spaces, adding missing semi-colons, etc.).
TODO:
This project follows a standard GitHub flow - please read this guide if you are unfamiliar.
Some other things to keep in mind:
Strive for concise but descriptive commit messages. This usually means avoiding the -m
flag for git commit
. This is a great guide to writing good commit messages: [https://cbea.ms/git-commit/].
Writing long commit messages is easy and VSCode makes even easier.