Commit 8d7d7ecf by Jaxon

feat(prettier): 替换prettier插件并添加WXML格式化功能

添加新的prettier-plugin-wxml.mjs插件,替换原有的prettier-plugin-mp插件
实现WXML文件的格式化功能,包括标签、属性、插值表达式和WXS脚本的格式化
支持自定义配置选项如缩进、引号风格和换行规则
1 parent d98e3f9a
...@@ -7,7 +7,7 @@ export default { ...@@ -7,7 +7,7 @@ export default {
htmlWhitespaceSensitivity: "ignore", htmlWhitespaceSensitivity: "ignore",
bracketSameLine: true, bracketSameLine: true,
plugins: ["prettier-plugin-mp"], plugins: ["./prettier-plugin-wxml.mjs"],
overrides: [ overrides: [
{ {
files: "*.wxml", files: "*.wxml",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!