StyleLint'未知规则声明-property-value-black-lacklist'每个CSS文件的错误

发布于 2025-02-10 20:58:39 字数 129 浏览 2 评论 0 原文

在针对CSS文件运行Stylelint时,每个文件都有一个输出,并带有以下错误。奇怪的是,错误出现在每个文件的第一行/字符上。

1:1 x未知规则声明 - 宣传 - value-blacklist

While running Stylelint against CSS files, every file has an output with the following error. It is odd that the error appears on the first line/character of each file.

1:1 x Unknown rule declaration-property-value-blacklist

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

·深蓝 2025-02-17 20:58:40

Stylelint 14.x和Stylelint-Config-airbnb插件之间存在兼容性错误。

There is a compatibility error between Stylelint 14.x and the stylelint-config-airbnb plugin. https://issuemode.com/issues/airbnb/css/10818973

掌心的温暖 2025-02-17 20:58:39

StyleLint在其未识别的配置对象中遇到规则时显示了“未知规则...”问题。

声明property-value-blacklist 规则在版本14.0.0.0 stylelint。它被 规则。您应该更新您的配置对象以改用该规则。

Stylelint shows the "Unknown rule ..." problem when it encounters a rule in the configuration object that it doesn't recognise.

The declaration-property-value-blacklist rule was removed in version 14.0.0 of Stylelint. It was replaced by the declaration-property-value-disallowed-list rule. You should update your configuration object to use that rule instead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文