포매터 및 코드
JavaScript / TypeScript 포맷터
무료 JavaScript 및 TypeScript 포맷터. Prettier의 기본 규칙이 전적으로 브라우저에서 실행됩니다 — 유형 주석에서 TypeScript를 자동으로 감지합니다. 붙여넣기, 클릭, 복사.
편집자 노트
Understanding · JS, set to a house style.
이 심층 챕터는 현재 영어로만 제공됩니다. 위의 변환 도구는 귀하의 언어로 작동하지만, 긴 설명 글은 아직 번역되지 않았습니다.
자주 묻는 질문
Quick answers.
›Does it handle TypeScript?
Yes — the tool auto-detects TypeScript from type annotations (`: string`, `interface Foo`, `type X = ...`) and routes to Prettier's TS parser. You don't have to toggle anything.
›Which Prettier options does it use?
Prettier's out-of-box defaults: 2-space indent, semicolons, double quotes, 80-column print width, trailing commas. These match the vast majority of published codebases.
›Will it change my code's behaviour?
No — Prettier only reformats; it never changes semantics. The output runs identically to the input, byte-for-byte after transpilation.
›Can it minify JavaScript?
No — Prettier is a formatter, not a minifier. For production minification use Terser, esbuild or SWC locally. They produce far smaller output than a whitespace collapser would.
사람들이 다음도 검색합니다.
관련 도구