diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 399db163..8b1bca98 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,5 +4,3 @@ - 작업 내용 2 ### ✨코멘트 - -### 📎관련티켓 diff --git a/.prettierrc b/.prettierrc index 7ca98002..44a7f078 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,6 +5,7 @@ "printWidth": 100, "semi": true, "bracketSameLine": false, + "plugins": ["@trivago/prettier-plugin-sort-imports"], "bracketSpacing": true, "importOrder": [ "^react(.*)", diff --git a/README.md b/README.md index 1ebe379f..10ea9a99 100644 --- a/README.md +++ b/README.md @@ -1,27 +1 @@ -# React + TypeScript + Vite - -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. - -Currently, two official plugins are available: - -- [@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 -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: - -- Configure the top-level `parserOptions` property like this: - -```js - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: ['./tsconfig.json', './tsconfig.node.json'], - tsconfigRootDir: __dirname, - }, -``` - -- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` -- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` -- 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 +# SpaceClub Frontend diff --git a/index.html b/index.html index e4b78eae..a21d6492 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + - + - Vite + React + TS + SpaceClub
diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 00000000..b7447e96 Binary files /dev/null and b/public/favicon.ico differ diff --git a/src/main.tsx b/src/main.tsx index f63af0f8..8b37ae3f 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,11 +1,12 @@ +import { Global, ThemeProvider } from '@emotion/react'; + import React from 'react'; import ReactDOM from 'react-dom/client'; -import App from './App'; -import Theme from '@styles/Theme'; import GlobalStyle from '@styles/GlobalStyle'; +import Theme from '@styles/Theme'; -import { Global, ThemeProvider } from '@emotion/react'; +import App from './App'; ReactDOM.createRoot(document.getElementById('root')!).render( diff --git a/src/styles/emotion.d.ts b/src/styles/emotion.d.ts index b576cb6d..079b0a7d 100644 --- a/src/styles/emotion.d.ts +++ b/src/styles/emotion.d.ts @@ -1,4 +1,5 @@ import '@emotion/react'; + import Theme from './Theme'; type ThemeType = typeof Theme;