【记录】HBuilder配置信息

Settings.json

1
2
3
4
5
6
7
8
9
10
11
12
{
"editor.colorScheme" : "Monokai",
"editor.tabSize" : 2,
"editor.contentAssistSelectionMode" : "Alt+数字模式",
"editor.insertSpaces" : true,
"editor.minimap.enabled" : false,
"editor.viewIndentationGuides" : false,
"eslint-vue.validateOnDocumentChanged" : true,
"editor.formatOnSave" : true,
"defaultFomat.vue": "prettier"
}

prettier.config.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
printWidth: 150,
semi: false,
tabWidth: 2,
useTabs: false,
singleQuote: true,
trailingComma: "es5",
bracketSpacing: true,
htmlWhitespaceSensitivity: "ignore",
parsers: {
".jsx": "flow",
".scss": "scss",
".ts": "typescript",
".less": "css",
".vue": "vue",
".nvue": "vue",
".ux": "vue",
".yml": "yaml",
}
}

jsbeautifyrc.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
52
53
54
55
module.exports = {
parsers: {
".js": "js",
".json": "js",
".njs": "js",
".sjs": "js",
".wxs": "js",
".css": "css",
".nss": "css",
".wxss": "css",
".acss": "css",
".ttss": "css",
".qss": "css",
".html": "html",
".ux": "html",
".wxml": "html",
".nml": "html",
".vue": "html",
".nvue": "html",
".axml": "html",
".swan": "html",
".ttml": "html",
".qml": "html"
},
options: {
"indent_size": "1",
"indent_char": "\t",
"indent_with_tabs": false, //使用tab缩进
"eol": "\r\n", //行结束符
"end_with_newline": false, //使用换行结束输出
"indent_level": 0, //起始代码缩进数
"preserve_newlines": true, //保留空行
"max_preserve_newlines": null, //最大连续保留换行符个数。比如设为2,则会将2行以上的空行删除为只保留1行
"space_in_paren": false, //括弧添加空格 示例 f( a, b )
"space_in_empty_paren": false, //函数的括弧内没有参数时插入空格 示例 f( )
"jslint_happy": false, //启用jslint-strict模式
"space_after_anon_function": false, //匿名函数的括号前加空格
"brace_style": "collapse", //代码样式,可选值 [collapse|expand|end-expand|none][,preserve-inline] [collapse,preserve-inline
"unindent_chained_methods": false, //不缩进链式方法调用
"break_chained_methods": false, //在随后的行中断开链式方法调用
"keep_array_indentation": false, //保持数组缩进
"unescape_strings": false, //使用xNN符号编码解码可显示的字符
"wrap_line_length": 120,
"e4x": false, //支持jsx
"comma_first": false, //把逗号放在新行开头,而不是结尾
"operator_position": "before-newline",
"unformatted": ["wbr"],
"html": {
"indent_handlebars": true,
"indent_inner_html": true,
"indent-scripts": "normal", //[keep|separate|normal]
"extra_liners": [] //配置标签列表,需要在这些标签前面额外加一空白行
}
}
}

supremacy.config.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
//配置项说明文档:https://thisismanta.github.io/stylus-supremacy/#options
module.exports = {
"insertColons": false,
"insertSemicolons": false,
"insertBraces": false,
"insertNewLineAroundImports": true,
"insertNewLineAroundBlocks": false,
"insertNewLineAroundProperties": false,
"insertNewLineAroundOthers": false,
"preserveNewLinesBetweenPropertyValues": false,
"insertSpaceBeforeComment": true,
"insertSpaceAfterComment": true,
"insertSpaceAfterComma": true,
"insertSpaceInsideParenthesis": false,
"insertParenthesisAfterNegation": false,
"insertParenthesisAroundIfCondition": true,
"insertNewLineBeforeElse": false,
"insertLeadingZeroBeforeFraction": true,
"selectorSeparator": ", ",
"tabStopChar": "\t",
//"newLineChar": "\n",
//"quoteChar": "'",
"sortProperties": false,
"alwaysUseImport": false,
"alwaysUseNot": false,
"alwaysUseAtBlock": false,
"alwaysUseExtends": false,
"alwaysUseNoneOverZero": false,
"alwaysUseZeroWithoutUnit": false,
"reduceMarginAndPaddingValues": false,
"ignoreFiles": []
}