noUnknownFunction
诊断类别:lint/correctness/noUnknownFunction
¥Diagnostic Category: lint/correctness/noUnknownFunction
自从:v1.8.0
¥Since: v1.8.0
来源:
¥Sources:
-
与以下相同:
stylelint/function-no-unknown
¥Same as:
stylelint/function-no-unknown
禁止未知的 CSS 值函数。
¥Disallow unknown CSS value functions.
此规则忽略双破折号自定义函数,例如 --custom-function()
。
¥This rule ignores double-dashed custom functions, e.g. --custom-function()
.
已知 CSS 值函数的数据源是:
¥Data sources of known CSS value functions are:
-
CSS 值函数 上的 MDN 参考
¥MDN reference on CSS value functions
-
CSS 参考 上的 MDN 参考
¥MDN reference on CSS reference
-
MDN CSS 值函数的浏览器兼容性数据
¥Examples
¥Invalid
code-block.css:1:16 lint/correctness/noUnknownFunction ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Unexpected unknown function: unknown
> 1 │ a { transform: unknown(1); }
│ ^^^^^^^
2 │
ℹ Use a known function instead.
ℹ See MDN web docs for more details.
¥Valid
¥Related links