#Rules

Rules determine what the linter looks for and complains about. All the rules are turned off by default and none have default values for their options. The rules follow a consistent naming convention and have been designed to work in conjunction with one another, you can read more about this in the "About rules" section.

In addition to these rules there are plugins, which are rules built by the community that support methodologies, toolsets, non-standard CSS features, or very specific use cases. Don't forget to look at the list of plugins for more ways to lint.

#List of rules

Here are all the rules within stylelint, grouped by the thing they apply to.

#Color

#Font family

#Font weight

#Function

#Number

#String

#Length

#Time

#Unit

#Value

#Value list

#Custom property

#Shorthand property

#Property

#Keyframe declaration

#Declaration

#Declaration block

#Block

#Selector

#Selector list

#Root rule

#Rule

#Media feature

#Custom media

#Media query list

#At-rule

#stylelint-disable comment

#Comment

#General / Sheet