Use TypeScript to make your code more robust
It's time to give up npm
and yarn
and switch to pnpm
as your package manager
The typescript package provides the tsc
command to compile your TypeScript code to Common JavaScript code. Configured by tsconfig.json
The eslint, @typescript-eslint/eslint-plugin, @typescript-eslint/parser packages check for syntax errors in your TypeScript code. Configured by .eslintrc.js
The prettier package formats your TypeScript code to ensure consistency in code style. Configured by prettier.config.js
The lint-staged package allows you to run lint tasks on staged files. Configured by lint-staged.config.js
The husky package allows you to manage Git hooks via shells. Configured by .husky
The ts-jest, jest, @types/jest packages provide convenient testing tools. Configured by jest.config.js
The ts-node package allows you to execute TypeScript code directly without explicitly compiling the code