forked from OKEAMAH/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.js
More file actions
37 lines (34 loc) · 1.01 KB
/
options.js
File metadata and controls
37 lines (34 loc) · 1.01 KB
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
import commonOptions from "../common/common-options.evaluate.js";
const CATEGORY_HTML = "HTML";
// format based on https://github.com/prettier/prettier/blob/main/src/main/core-options.evaluate.js
const options = {
bracketSameLine: commonOptions.bracketSameLine,
htmlWhitespaceSensitivity: {
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.",
},
],
},
singleAttributePerLine: commonOptions.singleAttributePerLine,
vueIndentScriptAndStyle: {
category: CATEGORY_HTML,
type: "boolean",
default: false,
description: "Indent script and style tags in Vue files.",
},
};
export default options;