HBuilderX中设置prettier属性多时换行

module.exports = {
    printWidth: 100,//长度100以外换行
    semi: true,
    tabWidth: 4,
    useTabs: false,
    singleQuote: true,
    trailingComma: "none",
    bracketSpacing: true,
	proseWrap: "always",//长度100以外总是换行
    htmlWhitespaceSensitivity: "ignore",
    parsers: {
        ".jsx": "flow",
        ".scss": "scss",
        ".ts": "typescript",
        ".less": "css",
        ".vue": "vue",
        ".nvue": "vue",
        ".ux": "vue",
        ".yml": "yaml",
    }
}


原文地址:https://www.cnblogs.com/eternityz/p/12270021.html