forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.js
51 lines (49 loc) · 1.25 KB
/
options.js
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
48
49
50
51
"use strict";
const CATEGORY_HTML = "HTML";
// format based on https://github.com/prettier/prettier/blob/master/src/main/core-options.js
module.exports = {
htmlWhitespaceSensitivity: {
since: "1.15.0",
category: CATEGORY_HTML,
type: "choice",
default: "css",
description: "How to handle whitespaces in HTML.",
choices: [
{
value: "css",
description: "Respect the default value of CSS display property."
},
{
value: "strict",
description: "Whitespaces are considered sensitive."
},
{
value: "ignore",
description: "Whitespaces are considered insensitive."
}
]
},
htmlTopLevelIndent: {
since: "1.18.0",
category: CATEGORY_HTML,
type: "choice",
default: "auto",
description: "How to handle top-level indent in HTML.",
choices: [
{
value: "always",
description:
"Always apply top-level indent for templates, scripts and styles."
},
{
value: "never",
description: "Avoid top-level indent for templates, scripts and styles."
},
{
value: "auto",
description:
"Avoid top-level indent for scripts and styles inside Vue files."
}
]
}
};