wogns3623 / Neotube

Clone of Youtube
0 stars 3 forks source link

Frontend setup #6

Open wogns3623 opened 3 years ago

wogns3623 commented 3 years ago

프론트엔드 셋업 과정

wogns3623 commented 3 years ago

Todo List

Done

Create react project with typescript

yarn create react-app frontend --template typescript

Auto linting when commit code

Auto prettier

ESLint plugin for react hooks

yarn add --dev eslint-plugin-react-hooks

Setting absolute & alias path

module.exports = { plugins: [ { plugin: CracoAlias, options: { source: "tsconfig", // as you know, CRA doesn't allow to modify tsconfig's compilerOptions // so you should create a separate JSON file and extend tsconfig.json from it // and then just specify its path here: tsConfigPath: "tsconfig.paths.json", }, }, ], };