npm i
eslint & prettier
์ฌ์ฉํ์ค ๋ถ์ Eslint & Prettier ์ฌ์ฉ๋ฒ์ ํ์ธํด์ฃผ์ธ์.
์ฌ์ฉํ์ค๋ถ๋ง ์ฌ์ฉํ์๋ฉด ๋ฉ๋๋ค.
(์ ํ ์ฌํญ)
-
vscode extension
์คESLint
์Prettier
์ค์น -
๋ช ๋ น ํ๋ ํธ ์คํ (
command(๋๋ ctrl) + shift + P
) -
์ฌ์ฉ์ ์ค์ (JSON)์คํ (
Preferences: Open User Settings (JSON)
) -
์๋ ๋ด์ฉ
Copy & Paste
{ "workbench.colorTheme": "Default Dark+", "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": true } }
npm start
- ์๋จ ๋ฉ๋ด๋ฐ์
ํ๋ก์ ํธ > ์คํURL๊ณผํฌํธ
ํด๋ฆญํ๊ธฐ 3000
ํฌํธ์ ๋ฑ๋ก๋ URL ํ์ธURL
์์ ์คํ ํ๋ฉด ํ์ธ
// GDS ์ปดํฌ๋ํธ
import { Button } from '@goorm-dev/gds-challenge';
// GDS ์์ด์ฝ
import { ChevronDoubleLeftIcon } from '@goorm-dev/gds-icons';
// alias (src/* === @/*)
import { Card } from '@/components';
const Example = () => {
return (
<>
<Button icon={<ChevronDoubleLeftIcon />}>GDS Example</Button>
<Card>Alias Example</Card>
</>
);
};