Skip to content

Boilerplate for typescript project configured with eslint, prettier, husky, and commitizen.

Notifications You must be signed in to change notification settings

asjadanis/ts-tooling

Repository files navigation

ts-tooling Lint

A very simple and extendable boilerplate for typescript configured with ESLint, Prettier, Husky, Commitizen.

Lint

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

Prettier

To update prettier rules modify .prettierrc file in the root of repo.

To format the entire project run

yarn format

Conventional Commits

Conventional Commits are supported using commitizen

To use commitizen with your commits run

yarn cz

Husky

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

About

Boilerplate for typescript project configured with eslint, prettier, husky, and commitizen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published