> For the complete documentation index, see [llms.txt](https://taewoongs-organization.gitbook.io/jtwjs-dev-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://taewoongs-organization.gitbook.io/jtwjs-dev-wiki/dev_note/etc.md).

# ETC

## ESLint

### tsconfig.eslint.json

* base.json을 기반으로 includes에 항목들만 eslint 적용시키도록 설정
* tsconfig에 파싱을 하면서 base config에 있는 내용들을 사용할수 있지만 범위를 좀 더 제한해서 그 범위 안에서만 eslint를 적용시키기 위함

```json
{
  "extends": "./tsconfig.base.json",
  "include": ["packages", "services", ".storybook/*js", ".eslintrc.js"]
}
```

### tsconfig.json

```json
{
  "extends": "../../tsconfig.base.json",
  "compilerOptions": {
    "outDir": "./dist"
  }
}
```

### eslintrc.js

```json
{
  ...,
  parserOptions: {
    project: "./tsconfig.eslint.json",
    sconfigRootDir: __dirname,
  }
}
```

## Peer Dependencies

* 특정 패키지가 작동하기위해 필요하지만 그 패키지 자체에 직접 포함되지 않는 외부 패키지의 버전을 명시
* peer는 동료를 의미
* peerDependency에 해당 패키지들을 추가해서 이 패키지를 설치하는 쪽에서 알아서 하나의 버전만 다운로드 하도록 해서 이슈를 회피한다
