Skip to content

css/no-unknown-unit

disallow unknown units

  • ⚙️ This rule is included in "plugin:css/recommended" and "plugin:css/standard".

📖 Rule Details

This rule reports an unknown CSS unit.

This rule was inspired by Stylelint's unit-no-unknown rule.

Now loading...

🔧 Options

json
{
  "css/no-unknown-unit": ["error", {
    "ignoreFunctions": [],
    "ignoreUnits": []
  }]
}
  • ignoreFunctions ... You can specify function names or patterns that you want to ignore from checking.
  • ignoreUnits ... You can specify unit names or patterns that you want to ignore from checking.

📚 Further reading

🚀 Version

This rule was introduced in eslint-plugin-css v0.2.0

🔍 Implementation