【发布时间】:2021-12-29 20:57:22
【问题描述】:
Prettier 正在将这部分代码格式化为一个 scss 文件:
@font-face {
font-family: 'Encode Sans Condensed';
src: url('/pf/resources/fonts/EncodeSansCondensed/EncodeSansCondensed-Thin.ttf')
format('truetype');
font-weight: 200;
font-style: normal;
}
我收到此错误““:”之后的预期换行符,带有多行声明” 我可以在 .prettierrc.json 文件中做什么来解决这个问题?
【问题讨论】: