网站开发 · 2024年11月24日

如何阻止stylelint将top、bottom、left和right属性合并成inset?

如何阻止stylelint将top、bottom、left和right属性合并成inset?插图

如何在配置了stylelint的项目中禁止top、bottom、left、right属性转换为inset?

问题:

提交代码时,stylelint自动将top、bottom、left和right属性合并成inset属性。如何禁止这种转换?

答案:

在stylelint规则中添加以下配置:

"declaration-block-no-redundant-longhand-properties": null

登录后复制

以上就是如何阻止stylelint将top、bottom、left和right属性合并成inset?的详细内容,更多请关注米云其它相关文章!