This project uses Typescript Eslint, and Prettier to catch errors and avoid bike-shedding by enforcing a common code style.
There are a few different contexts in which the linters run.
# Lint all files without auto-fixing
yarn lint
# Lint all files, fixing many violations automatically
yarn lint:fix
See package.json
to update.
Staged files are automatically linted and tested before each commit. See lint-staged.config.js
to update.
In supported editors, all files will be linted and show under the linter errors section.
This boilerplate ships with opinionated defaults, but you can edit each tools configuration in the following config files:
.eslintrc.js
.eslintignore
So many configuration files! Why not move more of this to package.json
?
package.json
can make it really packed, so that quickly navigating to a specific config becomes difficult.