通过 npn create vite@latest
创建项目
npm init @eslint/config@latest
npm install --save-dev eslint-plugin-prettier eslint-config-prettier
npm install --save-dev --save-exact prettier
更新eslint 配置文件
// ...
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default [
// ...
eslintPluginPrettierRecommended,
];
npm install --save-dev husky lint-staged
git init
npx husky init
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p --ts