-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: 支持wxs 函数格式化 #137
Comments
这个其实有点麻烦,有一个问题想问一下。
哪种方案更有价值? |
wxmlFormatter 目前有 wxml / prettier / prettyHtml 3个选项 format,感觉没必要做多选项(付出与回报不成正比),可以只适配prettier; 如果你后续还是支持3个选项, 建议在插件内做,便于做适配; |
@iChenLei npx prettier --config .prettierrc --write . 一键把项目的js、json等文件格式化 如果弄成 prettier-plugin-wxml 的话,可以借助 prettier 的node 命令实现wxml文件也一键格式化 |
@hxzAugustinus 👌🏻 好的,我先学习一下prettier插件开发文档 https://github.com/wxmlfile/prettier-plugin-wxml/issues/1 |
我看那个仓库已经有了,可以使用了吗? 如果可以的话,怎么使用? @iChenLei |
功能描述:
在wxml 里写 wxs 函数
格式化时,无法按js规则格式化;
希望可以
<wxs module="fn">
标签内 按js 规则格式化The text was updated successfully, but these errors were encountered: