Skip to content

Commit 5cbb592

Browse files
zhangxiaoshangvanoneang
authored andcommitted
style: 增加.prettier.js配置文件 (#257)
1 parent f28c569 commit 5cbb592

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
singleQuote: true, //字符串是否使用单引号,默认为false,使用双引号
3+
semi: false, //行位是否使用分号,默认为true
4+
trailingComma: 'es5', //是否使用尾逗号,有三个可选值"<none|es5|all>"
5+
arrowParens: 'always'
6+
};

0 commit comments

Comments
 (0)