A very simple and extendable boilerplate for typescript configured with ESLint, Prettier, Husky, Commitizen.
To modify eslint rules update your .eslintrc
file in the project root, it currently uses
- "eslint:recommended",
- "plugin:@typescript-eslint/recommended",
To lint the entire project run
yarn lint
To update prettier rules modify .prettierrc
file in the root of repo.
To format the entire project run
yarn format
Conventional Commits are supported using commitizen
To use commitizen with your commits run
yarn cz
A pre-commit
hook is setup using husky and and it will run lint and format command on all staged files that match the target files (src/**/*.ts)
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged