--- id: P-REINFORCE-AI-ESLINT category: "10_Wiki/πŸ’‘ Topics/AI" confidence_score: 1.00 tags: [JavaScript, Tooling, ESLint, StaticAnalysis] last_reinforced: 2026-04-20 --- # [[Es-Lint-Configuration|Es-Lint-Configuration]] (ESLint μ„€μ • κ°€μ΄λ“œ) ## πŸ“Œ ν•œ 쀄 톡찰 (The Karpathy Summary) > "천 λͺ…μ˜ κ°œλ°œμžκ°€ ν•œ λͺ…μ˜ 개발자처럼 μ½”λ”©ν•˜κ²Œ λ§Œλ“œλŠ” κ·œμΉ™μ˜ 파수꾼." μ†ŒμŠ€ μ½”λ“œλ₯Ό μ •μ μœΌλ‘œ λΆ„μ„ν•˜μ—¬ 잠재적 버그λ₯Ό μ°Ύκ³ , νŒ€ λ‚΄ ν•©μ˜λœ μ½”λ”© μ»¨λ²€μ…˜μ„ κ°•μ œλ‘œ μ§‘ν–‰ν•˜λŠ” 도ꡬ닀. ## πŸ“– κ΅¬μ‘°ν™”λœ 지식 (Synthesized Content) - **Configuration Layers**: - **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: λͺ¨μ–‘검사)을 λͺ…ν™•νžˆ ν•˜λŠ” 것이 핡심이닀. ## πŸ”— 지식 μ—°κ²° (Graph) - Related: Prettier-Configuration , [[Custom-ESLint-Rules-Development|Custom-ESLint-Rules-Development]] - Part of: [[SAST (Static Application Security Testing)|SAST (Static Application Security Testing)]]