JavaScript starter with vitest, prettier, eslint.
All the tools you need to build your project.
- β‘οΈ Vitest 0.34
- β Node 18
- π 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
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.