๋ชจ๋ ธ๋ ํฌ ๋ ํฌ์งํฐ๋ฆฌ ๊ตฌ์กฐ๋ ๋ค์๊ณผ ๊ฐ๋ค.
.github
.husky
apps
ใด storybook
ใด web
packages
ใด design-system
ใด .turbo
ใด dist
ใด node_modules
ใด src
ใด turbo
ใด typings
ใด eslintrc.cjs
ใด package.json
ใด tsconfig.json
ใด tsconfig.lint.json
ใด eslint-config
ใด typescript-config
package.json
pnpm-lock.yaml
.npmrc
// ...์๋ต
๋ชจ๋ ธ๋ ํฌ๋ก ํ์ผ์ ๊ตฌ์ฑํ๊ณ ์์๊ณ , husky๋ก precommit์ lint๋ฅผ ํ๋๋ก ์ค์ ์ค์ ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค.

๋ฌธ์ ๋ TSConfig๊ฐ ์ด ํ์ผ์ ํฌํจํ๊ณ ์์ง ์๊ณ ์๋ค๋ ๊ฒ์ด๋ค.
์ต์๋จ์์ ์ปค๋ฐ์ ํ๊ธฐ ์ , husky pre-commit์ prettier๋ก formatํ๊ณ eslint๋ก lint๋ฅผ ํ๋๋ก ์ค์ ํด์ฃผ๊ณ ์ ํ๋ค.
packages/design-system์ lint๋ src์ turbo ๊ฒฝ๋ก ์๋์ ํ์ผ๋ค์ ํ์ lint๋ฅผ ํ๋๋ก ์ค์ ์ด ๋์ด ์์๊ธฐ ๋๋ฌธ์
ํด๋น ๊ฒฝ๋ก๋ฅผ ์ถ๊ฐํด์ค์ผ ํ๋ค.
turborepo๋ฅผ ์ฒ์ ์จ๋ดค๋๋ฐ, ์ข์ ์ ์ ์๋ฌด๋๋ ์๋ฌ ๋ก๊ทธ๊ฐ ์ ๋์ด ์๋ ๊ฒ ๊ฐ๋ค.
์น์ ํ๊ฒ ํด๊ฒฐ ๋ฐฉ๋ฒ๋ ์ค๋ช ํด์ฃผ๊ณ ์๋ค.
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
์ต์ 1 : EsLint ์ค์ ํ์ผ์ include์ ํด๋น ํ์ผ์ด ํฌํจ๋์ง ์๋๋ก ํ๊ธฐ
์ต์ 2 : TSConfig ํ์ผ์ include์ ํ์ผ ์ถ๊ฐํด ์ฃผ๊ธฐ
์ต์ 3 : TSConfig ํ์ผ์ ์๋ก ๋ง๋ค๊ณ , ์ด ํ์ผ์ ์ถ๊ฐํด ์ฃผ๊ณ , parserOptions.project์ ํฌํจํด ์ฃผ๊ธฐ
๋ค์๊ณผ ๊ฐ์ด packages/design-system/tsconfig.lint.json์ ์ต์ 2์์ ์ธ๊ธํ ๋ฐ์ ๊ฐ์ด ๋ฆฐํธ๋ฅผ ํด์ค ํด๋ ๊ฒฝ๋ก๋ฅผ ์ถ๊ฐํด ์ค๋ค.
{
"extends": "@tripie/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src", "turbo", "typings"],
"exclude": ["node_modules", "dist"]
}