Welcome to @ts-dev-tools/core 💎
Common Typescript dev tools
What's included
📦 Package scripts
⚡ Git hooks
pre-commit
- Run linter against staged git files with lint-staged
- Run prettier against changed files with pretty-quick
commit-msg
- Lint conventional commit message with commit-lint
pre-push
- Run linter
- Execute Typescript compiler with tsc
- Run tests
👕 Linter
-
Configure Eslint to works with typescript
-
Install and configure the following Eslint plugins:
- eslint-plugin-import: ES2015+ (ES6+) import/export syntax
- eslint-plugin-jest: Rules for Jest
- eslint-plugin-node: Additional ESLint's rules for Node.js
- eslint-plugin-promise: Enforce best practices for JavaScript promises.
💄 Prettier
- Install and configure Prettier
- Configure Prettier to works with Eslint
- Install and configure the following Prettier plugins:
- prettier-plugin-import-sort: sort imports using import-sort for javascript and typescript files.
🧪 Tests
📖 Types
Usage
1. Install
npm install --dev @ts-dev-tools/core
Or
yarn add --dev @ts-dev-tools/core
2. Enable ts-dev-tools
npx ts-dev-tools install
Or
yarn ts-dev-tools install