Skip to content

Commit 8a6d775

Browse files
committed
prettier 설치
2024/07/11
1 parent 8cf16fc commit 8a6d775

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.prettierrc.cjs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
printWidth: 80, // 한 줄 최대 글자 수
3+
tabWidth: 2, // 탭 하나당 띄어쓰기 개수
4+
useTabs: false, // 탭 사용 X
5+
semi: true, // 세미콜론 사용
6+
singleQuote: false, // ' ' 사용
7+
quoteProps: "consistent",
8+
jsxBracketSameLine: false, // JSX 태그를 사용하는경우에 > 기호를 한줄 내려서 사용
9+
bracketSpacing: true, // 객체의 양 끝 간격 사용
10+
arrowParens: "avoid", // 매개변수가 1개 이더라도 소괄호 필수
11+
trailingComma: "es5", // 배열, 객체등의 마지막 요소에 콤마
12+
quoteProps: "as-needed", // 객체의 속성 표현 시, 필요시에만 따옴표 적용
13+
};

0 commit comments

Comments
 (0)