FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
WebClient-JavaScript/.prettierrc.js at master · MapGIS/WebClient-JavaScript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
MapGIS
/
WebClient-JavaScript
Public
Notifications
You must be signed in to change notification settings
Fork
45
Star
186
Code
Issues
4
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
WebClient-JavaScript
/
.prettierrc.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (33 loc) · 1.06 KB
Breadcrumbs
WebClient-JavaScript
/
.prettierrc.js
Copy path
File metadata and controls
47 lines (33 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 执行下列两个命令,安装 eslint 和 prettier 工具
// npm add --dev prettier
// npm i -D eslint-plugin-prettier
module
.
exports
=
{
// 超过最大值换行
printWidth
:
150
,
// 缩进为4个空格
tabWidth
:
4
,
// 不使用缩进符,而使用空格
useTabs
:
false
,
// 是否在语句末尾加分号
semi
:
true
,
// 单引号
singleQuote
:
true
,
// 数组 对象尾随不需要逗号
trailingComma
:
'none'
,
// 对象空格 { foo: bar }, false=> {foo:bar}
bracketSpacing
:
true
,
// jsx闭标签是否另起一行 <Test></Test>
jsxBracketSameLine
:
true
,
// 箭头函数,只有一个参数的时候,也需要括号
arrowParens
:
'always'
,
// 不需要写文件开头的 @prettier
requirePragma
:
false
,
// 不需要自动在文件开头插入 @prettier
insertPragma
:
false
,
// 使用默认的折行标准
proseWrap
:
'preserve'
,
// 根据显示样式决定 html 要不要折行
htmlWhitespaceSensitivity
:
'css'
,
// 换行符使用 lf
endOfLine
:
'lf'
}
;
Back
|
FazBrowse Home
|
New Git URL