Skip to main content

List of rules

Grouped first by the following categories and then by the thing they apply to.

Possible errors

Color

Font family

Named grid areas

Function

String

Unit

Custom property

Property

Keyframe declaration

Declaration block

Block

Selector

Media feature

At-rule

Comment

General / Sheet

Limit language features

Alpha-value

Hue

Color

Length

Font weight

  • font-weight-notation: Require numeric or named (where possible) font-weight values. Also, when named values are expected, require only valid names.

Function

Keyframes

Number

Time

Unit

Shorthand property

Value

Custom property

Property

Declaration

Declaration block

Selector

Rules

Media feature

Custom media

At-rule

Comment

General / Sheet

Stylistic issues

Color

  • color-hex-case: Specify lowercase or uppercase for hex colors (Autofixable).
  • color-hex-length: Specify short or long notation for hex colors (Autofixable).

Font family

Function

Number

String

  • string-quotes: Specify single or double quotes around strings (Autofixable).

Unit

  • unit-case: Specify lowercase or uppercase for units (Autofixable).

Value

Value list

Custom property

Property

  • property-case: Specify lowercase or uppercase for properties (Autofixable).

Declaration

Declaration block

Block

Selector

Selector list

Rule

Media feature

Media query list

At-rule

Comment

General / Sheet