1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 03:17:30 -04:00
notes/node_modules/stylelint/docs/user-guide/rules.md
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

27 KiB

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