Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 870 Bytes

tooling.md

File metadata and controls

23 lines (18 loc) · 870 Bytes

Tooling

We have some tooling setup to enforce code style and keep everything organized.

Git hooks

We have git hooks that run on commit and push. If your hooks aren't running run:

$ yarn fix-githooks

Prettier

Prettier is what helps us to enforce code style. If your githook fails, the best solution is to run

$ yarn prettier:write

The best thing to do would be to install an extension on your code editor to auto prettify on save.

Upgrading prettier

It's ok to upgrade prettier, just make sure to only use exact versions in the package json. If someone doing dev has a different version of prettier, they may conflict and cause you headaches.

es-lint

This is helps with catching errors before you commit them. You should install a linter on your code editor, but the githooks will also catch any errors es-lint might find.