首页 > 文章列表 > 如何阻止stylelint将top、bottom、left和right属性合并成inset?

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

178 2024-11-17

如何阻止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
来源:1731205580