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

less文件每次保存自动加了分号 #143

Open
overQ-N opened this issue Nov 17, 2022 · 1 comment
Open

less文件每次保存自动加了分号 #143

overQ-N opened this issue Nov 17, 2022 · 1 comment

Comments

@overQ-N
Copy link

overQ-N commented Nov 17, 2022

less文件在保存的时候每次都加上了分号

这种情况仅出现于less代码块在文件的最末尾处,如下图
配置都是直接用的 @umijs/fabric 的默认配置

image

@overQ-N
Copy link
Author

overQ-N commented Nov 18, 2022

有两个解决方法:

  1. 避免代码块放在文件最后
  2. 加上 prettier-ignore

image

但我不了解什么原因导致的

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

1 participant