Skip to content

Commit ce47f8b

Browse files
committed
【add】编码规范配置文件 review by liqian
1 parent ce702f7 commit ce47f8b

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = crlf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
charset = utf-8
9+
10+
[*.{js,html,css}]
11+
indent_style = space
12+
indent_size = 4
13+
14+
[*.{json}]
15+
indent_style = space
16+
indent_size = 2

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package.json

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 120,
3+
"proseWrap": "never",
4+
"tabWidth":4,
5+
"semi":true,
6+
"trailingComma":"none",
7+
"bracketSpacing":true
8+
}

0 commit comments

Comments
 (0)