Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas_plus / dj-car-boutique-work-wechat

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 1
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dj-car-boutique-work-wechat
  • .prettierrc.mjs
  • Jaxon's avatar
    feat(prettier): 替换prettier插件并添加WXML格式化功能 · 8d7d7ecf ...
    添加新的prettier-plugin-wxml.mjs插件,替换原有的prettier-plugin-mp插件
    实现WXML文件的格式化功能,包括标签、属性、插值表达式和WXS脚本的格式化
    支持自定义配置选项如缩进、引号风格和换行规则
    Jaxon committed Jan 22, 2026
    8d7d7ecf
.prettierrc.mjs 294 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
export default {
	printWidth: 200,
	tabWidth: 4,
	useTabs: true,
	semi: true,
	singleQuote: false,

	htmlWhitespaceSensitivity: "ignore",
	bracketSameLine: true,
	plugins: ["./prettier-plugin-wxml.mjs"],
	overrides: [
		{
			files: "*.wxml",
			options: {
				parser: "wxml",
			},
		},
	],
};