FWQ
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 登录后复制 此配置将允许同时保留 longhand 属性(如 top、bottom、left 和 right)和 inset 属性。…