- Create React App with Vite
- Choose React Framework
- Choose Typescript + SWC
- Install Tailwind dependency
- Install standard dependencies
- Install react-router with
npm i react-router-dom - Install react-query with
npm i @tanstack/react-query
- Install react-router with
- Configure vscode project settings with eslint config
Click to expand
``` { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.addMissingImports": "explicit" }, "prettier.tabWidth": 2, "prettier.useTabs": false, "prettier.semi": true, "prettier.singleQuote": false, "prettier.jsxSingleQuote": false, "prettier.trailingComma": "es5", "prettier.arrowParens": "always", "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[css]": { "editor.defaultFormatter": "vscode.css-language-features" }, } ``` - Add component libraries
Last active
June 2, 2024 20:16
-
-
Save tonytrg/157f4dad78703f8d6d4e47eabb2ae47d to your computer and use it in GitHub Desktop.
React + Vite + Tailwind + ESLint Setup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment