Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-23 10:02:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ac32afa3731e0f97b2d6842a52301a3c9f60773d
ac32afa3
1 parent
be21d8e8
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
.gitignore
prettier.config.js
.gitignore
View file @
ac32afa
...
...
@@ -7,3 +7,5 @@ dist-ssr
doc
.vscode
publish.sh
src/views/test/*
src/store/test.js
...
...
prettier.config.js
View file @
ac32afa
module
.
exports
=
{
printWidth
:
100
,
semi
:
true
,
printWidth
:
100
,
// 代码行的宽度,通用建议每行最大长度建议为100/120,但最好不超过这两个数。
tabWidth
:
2
,
// 指定每次缩进的空格数。
semi
:
true
,
// 是否在代码语句结尾添加分号。
vueIndentScriptAndStyle
:
true
,
singleQuote
:
true
,
trailingComma
:
'all'
,
singleQuote
:
true
,
// 是否使用单引号,JSX单独设置。
trailingComma
:
'all'
,
// 在多行以逗号分割的句法中尽可能补充尾行逗号。
bracketSpacing
:
true
,
// 是否在对象属性与大括号之间填充空格。
bracketSameLine
:
false
,
// 开始标签的右尖括号是否跟随在最后一行属性末尾。
proseWrap
:
'never'
,
htmlWhitespaceSensitivity
:
'strict'
,
endOfLine
:
'auto'
,
endOfLine
:
'auto'
,
// 设置换行风格,避免不同操作系统造成的大量代码diff。
singleAttributePerLine
:
false
// 在Html,Vue,JSX中是否强制每条属性占用一行。
};
...
...
Please
register
or
login
to post a comment