Typescript starter with vitest, prettier, eslint.
All the tools you need to build your project.
- ⚡️ Vitest 0.34
- ⭐ Node 18
- ⛑ TypeScript
- 📏 ESLint — To find and fix problems in your code
- 💖 Prettier — Code Formatter for consistent style
- 🐶 Husky — For running scripts before committing
- 🚓 Commitlint — To make sure your commit messages follow the convention
- 🚫 lint-staged — Run ESLint and Prettier against staged Git files
- ⚙️ EditorConfig - Consistent coding styles across editors and IDEs
- 🗂 Path Mapping — Import components or images using the
~/
prefix
To start the project locally, run:
npm dev
our
yarn dev
- Node.js >= 18.13.0
- npm our yarn
yarn/npm dev
— Starts the application in development mode.yarn/npm build
— Creates an optimized production build of your application.yarn/npm start
— Starts the application in production mode.yarn/npm lint
— Runs ESLint for all files.yarn/npm format
— Try format files use prettier.yarn/npm lint:fix
— Try fix files use eslint.yarn/npm lint:all
— Runs all lint scripts and format:npm run format && npm run lint:fix && npm run lint
.yarn/npm test
— Runs test files without watch mode.yarn/npm test:watch
— Runs test files with watch mode.yarn/npm test:ui
— Run in browser UI views tests.yarn/npm test:coverage
— Runs test files with coverage report.