[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: P-REINFORCE-AI-ESLINT
|
||||
id: [[P-Reinforce]]-AI-[[ESLint]]
|
||||
category: "10_Wiki/💡 Topics/AI"
|
||||
confidence_score: 1.00
|
||||
tags: [JavaScript, Tooling, ESLint, StaticAnalysis]
|
||||
tags: [[[JavaScript]], Tooling, ESLint, Static[[Analysis]]]
|
||||
last_reinforced: 2026-04-20
|
||||
---
|
||||
|
||||
@@ -13,15 +13,15 @@ last_reinforced: 2026-04-20
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
- **Configuration Layers**:
|
||||
- **Parser**: TS, Babel 등 최신 문법을 분석할 수 있게 변환.
|
||||
- **[[Parser]]**: TS, Babel 등 최신 문법을 분석할 수 있게 변환.
|
||||
- **Plugins**: 특정 프레임워크 전용 규칙 추가 (React, NestJS 등).
|
||||
- **Extends**: 구글, 에어비앤비 등에서 검증된 설정 세트를 그대로 상속.
|
||||
- **Rules**: 'off', 'warn', 'error' 3단계로 개별 규칙의 엄격도 조절.
|
||||
- **Auto-fix**: 저장 시점에 세미콜론 누락, 안 쓰는 변수 제거 등을 자동으로 교정하여 생산성 향상.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (RL Update)
|
||||
- 최신 ESLint(v9+)는 설정 파일 형식이 완전히 바뀐 'Flat Config' 시대로 진입했다. 기존 `eslintrc.*` 방식은 레거시가 되었으므로, 새로운 프로젝트에서는 `eslint.config.js`를 사용해야 한다. 또한 포맷팅 전용 도구인 Prettier와 충돌하지 않도록 역할 분담(Linter: 논리검사, Formatter: 모양검사)을 명확히 하는 것이 핵심이다.
|
||||
- 최신 ESLint(v9+)는 설정 파일 형식이 완전히 바뀐 'Flat Config' 시대로 진입했다. 기존 `eslintrc.*` 방식은 레거시가 되었으므로, 새로운 프로젝트에서는 `eslint.config.js`를 사용해야 한다. 또한 포맷팅 전용 도구인 [[Prettier]]와 충돌하지 않도록 역할 분담(Linter: 논리검사, Formatter: 모양검사)을 명확히 하는 것이 핵심이다.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- Related: Prettier-Configuration , [[Custom-ESLint-Rules-Development]]
|
||||
- Part of: [[SAST (Static Application Security Testing)]]
|
||||
- Part of: [[SAST (Static Application Security [[Testing]])]]
|
||||
|
||||
Reference in New Issue
Block a user