Skip to content

Commit 9ae3d64

Browse files
committed
chore: 新增 .editorconfig 和 .prettierrc 配置檔以統一代碼風格
1 parent 1f89793 commit 9ae3d64

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": false,
4+
"semi": true,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"trailingComma": "all"
8+
}

0 commit comments

Comments
 (0)