|
1 | | -## 🐙 프로젝트 소개 |
| 1 | +# React + TypeScript + Vite |
2 | 2 |
|
3 | | - |
| 3 | +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. |
4 | 4 |
|
5 | | -## 🧸 팀원 소개 |
| 5 | +Currently, two official plugins are available: |
6 | 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 |
7 | 9 |
|
8 | | -| [J032_김동준](https://github.com/djk01281) | [J075_김현준](https://github.com/Tolerblanc) | [J097_민서진](https://github.com/summersummerwhy) | [J162_유성민](https://github.com/ezcolin2) | [J248_진예원](https://github.com/yewonJin) | |
9 | | -|:----------------------------------------:|:------------------------------------------:|:------------------------------------------------:|:----------------------------------------:|:----------------------------------------:| |
10 | | -| <img width="204" alt="스크린샷 2024-10-29 오후 11 40 13" src="https://github.com/user-attachments/assets/96e153b5-7254-4354-b17f-7436eb2a5734"> | <img width="204" alt="스크린샷 2024-10-29 오후 11 41 04" src="https://github.com/user-attachments/assets/e093f852-a6ea-4937-b0ce-b89276bd7135"> | <img width="204" alt="스크린샷 2024-10-29 오후 11 41 55" src="https://github.com/user-attachments/assets/0f638ba9-a1ad-47b8-a874-957c0119384c"> | <img width="204" alt="스크린샷 2024-10-29 오후 11 41 00" src="https://github.com/user-attachments/assets/1d77b650-70f1-4dee-9489-dc0122b7c9ff"> | <img width="204" alt="스크린샷 2024-10-29 오후 11 40 31" src="https://github.com/user-attachments/assets/db99b6b2-ae06-4758-8687-17ebb860a52b"> | |
11 | | -| INFJ | INFJ | INTP | INFP | ISTJ | |
12 | | -| **`FE`** | **`BE`** | **`BE`** | **`BE`** | **`FE`** | |
| 10 | +## Expanding the ESLint configuration |
13 | 11 |
|
| 12 | +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: |
14 | 13 |
|
| 14 | +- Configure the top-level `parserOptions` property like this: |
| 15 | + |
| 16 | +```js |
| 17 | +export default tseslint.config({ |
| 18 | + languageOptions: { |
| 19 | + // other options... |
| 20 | + parserOptions: { |
| 21 | + project: ['./tsconfig.node.json', './tsconfig.app.json'], |
| 22 | + tsconfigRootDir: import.meta.dirname, |
| 23 | + }, |
| 24 | + }, |
| 25 | +}) |
| 26 | +``` |
| 27 | + |
| 28 | +- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` |
| 29 | +- Optionally add `...tseslint.configs.stylisticTypeChecked` |
| 30 | +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: |
| 31 | + |
| 32 | +```js |
| 33 | +// eslint.config.js |
| 34 | +import react from 'eslint-plugin-react' |
| 35 | + |
| 36 | +export default tseslint.config({ |
| 37 | + // Set the react version |
| 38 | + settings: { react: { version: '18.3' } }, |
| 39 | + plugins: { |
| 40 | + // Add the react plugin |
| 41 | + react, |
| 42 | + }, |
| 43 | + rules: { |
| 44 | + // other rules... |
| 45 | + // Enable its recommended rules |
| 46 | + ...react.configs.recommended.rules, |
| 47 | + ...react.configs['jsx-runtime'].rules, |
| 48 | + }, |
| 49 | +}) |
| 50 | +``` |
0 commit comments