Skip to content

Commit 05fa8a7

Browse files
committed
chore: add router, tailwindcss
1 parent d2f05ed commit 05fa8a7

38 files changed

+816
-146
lines changed

ItPick/.eslintrc.cjs .eslintrc.cjs

File renamed without changes.

ItPick/.gitignore .gitignore

File renamed without changes.

ItPick/README.md

-30
This file was deleted.

ItPick/src/App.tsx

-35
This file was deleted.

ItPick/src/assets/react.svg

-1
This file was deleted.

ItPick/src/index.css

-68
This file was deleted.

ItPick/src/main.tsx

-10
This file was deleted.

README.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
# IT-Pick-Frontend
1+
# React + TypeScript + Vite
2+
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4+
5+
Currently, two official plugins are available:
6+
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9+
10+
## Expanding the ESLint configuration
11+
12+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13+
14+
- Configure the top-level `parserOptions` property like this:
15+
16+
```js
17+
export default {
18+
// other rules...
19+
parserOptions: {
20+
ecmaVersion: 'latest',
21+
sourceType: 'module',
22+
project: ['./tsconfig.json', './tsconfig.node.json'],
23+
tsconfigRootDir: __dirname,
24+
},
25+
}
26+
```
27+
28+
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29+
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list

ItPick/index.html index.html

File renamed without changes.

ItPick/package.json package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13+
"autoprefixer": "^10.4.19",
14+
"postcss": "^8.4.39",
1315
"react": "^18.3.1",
14-
"react-dom": "^18.3.1"
16+
"react-dom": "^18.3.1",
17+
"react-router-dom": "^6.24.0",
18+
"tailwindcss": "^3.4.4"
1519
},
1620
"devDependencies": {
1721
"@types/react": "^18.3.3",
1822
"@types/react-dom": "^18.3.0",
23+
"@types/react-router-dom": "^5.3.3",
1924
"@typescript-eslint/eslint-plugin": "^7.13.1",
2025
"@typescript-eslint/parser": "^7.13.1",
2126
"@vitejs/plugin-react-swc": "^3.5.0",

0 commit comments

Comments
 (0)