⚡
Vite + React + TypeScript + Eslint + Prettier Template Create a new project with Vite, React JS, TypeScript, Eslint, Prettier in just 1 second and you don't need to setup anything.
https://vite-react-ts-eslint-prettier.netlify.app/
Netlify Deploy:📋
Some Features Alias Import
Hook Warning
Prettier Warning
Etc...
Features
- ESLint - script linter
- Stylelint - style linter
- Prettier - formatter
- Jest - test framework
- Husky + lint-staged - pre-commit git hook set up for formatting
📦
Using - Clone Template
git clone https://github.com/kothing/vite-react-ts-eslint-prettier.git
- Install Packages
yarn install
- Start Project
yarn dev
- If you using git, delete the existing folder .git after cloning (open
git bash
or other terminal)
rm -rf .git
✍️
Options The starter contains the following scripts:
dev
- starts dev serverbuild
- generates the following bundles: CommonJS (.cjs
) ESM (.mjs
) UMD (.umd.js
) and IIFE (.iife.js
). The name of bundle is automatically taked frompackage.json
name propertyeslint
- lint.js
,.jsx
,.ts
,.tsx
files with eslintprettier
- format.js
,.ts
,.html
and.json
files with prettierstylelint
- format.css
less
and.scss
files with stylelintprepare
- script for setting up husky pre-commit hook