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

生成的模板 JSX 中部分标签没有自闭合 #13

Open
luhc228 opened this issue Nov 12, 2020 · 1 comment
Open

生成的模板 JSX 中部分标签没有自闭合 #13

luhc228 opened this issue Nov 12, 2020 · 1 comment
Assignees

Comments

@luhc228
Copy link
Member

luhc228 commented Nov 12, 2020

表现:

image

解决:
方式一:ast 生成代码时,如果 children 为空,生成自闭合标签

方式二:生成模板后使用 eslint 格式化

@imsobear
Copy link
Member

临时解决方案:生成项目后单独使用 eslint --fix

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

2 participants