コンテンツにスキップ

CSS Rules

このコンテンツはまだ日本語訳がありません。

Below the list of rules supported by Biome, divided by group. Here’s a legend of the emojis:

  • The icon indicates that the rule is part of the recommended rules.
  • The icon indicates that the rule provides a code action (fix) that is safe to apply.
  • The icon indicates that the rule provides a code action (fix) that is unsafe to apply.
  • The icon indicates that the rule is currently only available in the 2.0 beta release.
Rule nameDescriptionProperties
useGenericFontNamesDisallow a missing generic family keyword within font families.
Rule nameDescriptionProperties
noInvalidDirectionInLinearGradientDisallow non-standard direction values for linear gradient functions.
noInvalidGridAreasDisallows invalid named grid areas in CSS Grid Layouts.
noInvalidPositionAtImportRuleDisallow the use of @import at-rules in invalid positions.
noMissingVarFunctionDisallow missing var function for css variables.
noUnknownFunctionDisallow unknown CSS value functions.
noUnknownMediaFeatureNameDisallow unknown media feature names.
noUnknownPropertyDisallow unknown properties.
noUnknownPseudoClassDisallow unknown pseudo-class selectors.
noUnknownPseudoElementDisallow unknown pseudo-element selectors.
noUnknownTypeSelectorDisallow unknown type selectors.
noUnknownUnitDisallow unknown CSS units.
noUnmatchableAnbSelectorDisallow unmatchable An+B selectors.
Rule nameDescriptionProperties
noImportantStylesDisallow the use of the !important style.
noUnknownAtRuleDisallow unknown at-rules.
noUselessEscapeInStringDisallow unnecessary escapes in string literals.
Rule nameDescriptionProperties
noDescendingSpecificityDisallow a lower specificity selector from coming after a higher specificity selector.
noValueAtRuleDisallow use of @value rule in css modules.
Rule nameDescriptionProperties
noDuplicateAtImportRulesDisallow duplicate @import rules.
noDuplicateCustomPropertiesDisallow duplicate custom properties within declaration blocks.
noDuplicateFontNamesDisallow duplicate names within font families.
noDuplicatePropertiesDisallow duplicate properties within declaration blocks.
noDuplicateSelectorsKeyframeBlockDisallow duplicate selectors within keyframe blocks.
noEmptyBlockDisallow CSS empty blocks.
noImportantInKeyframeDisallow invalid !important within keyframe declarations
noIrregularWhitespaceDisallows the use of irregular whitespace characters.
noShorthandPropertyOverridesDisallow shorthand properties that override related longhand properties.