# 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에 해당 패키지들을 추가해서 이 패키지를 설치하는 쪽에서 알아서 하나의 버전만 다운로드 하도록 해서 이슈를 회피한다


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://taewoongs-organization.gitbook.io/jtwjs-dev-wiki/dev_note/etc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
