Skip to content
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

是否能以npm命令的方式格式化wxml吗 #151

Open
yuemiaojie opened this issue Oct 26, 2022 · 5 comments
Open

是否能以npm命令的方式格式化wxml吗 #151

yuemiaojie opened this issue Oct 26, 2022 · 5 comments
Assignees

Comments

@yuemiaojie
Copy link

我现在在git提交时候进行prettier全局格式化,但是wxml文件貌似不生效

@iChenLei
Copy link
Member

@yuemiaojie 有没有兴趣参与开发 prettier-plugin-wxml

@yuemiaojie
Copy link
Author

@yuemiaojie 有没有兴趣参与开发 prettier-plugin-wxml

好啊,请问怎么加入呢

@wy5211
Copy link

wy5211 commented Nov 30, 2023

+1 , prettier 格式化 wxml ,style 内联样式换行后,会导致微信开发者工具解析失败

@iChenLei
Copy link
Member

iChenLei commented Nov 30, 2023

@wy5211 prettier-plugin-wxml PR welcome , we need a hero.

@wy5211
Copy link

wy5211 commented Feb 26, 2024

@wy5211 prettier-plugin-wxml PR welcome , we need a hero.

我的问题已经解决,prettier 有个属性可以解决 wxml 属性换行问题,singleAttributePerLine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants