跳到主要内容

Errors & warnings

In addition to rule problems, Stylelint surfaces the following errors and warnings:

CSS syntax error

The chosen PostCSS syntax was unable to parse the source.

Parse error

The chosen PostCSS syntax successfully parsed, but one of the construct-specific parsers failed to parse either a media query, selector or value within that source.

The construct-specific parsers are:

  • postcss-media-query-parser
  • postcss-selector-parser
  • postcss-value-parser

Unknown rule error

There is an unknown rule in the configuration object.

Deprecation warning

There is a deprecated rule in the configuration object.

Invalid option warning

There is a misconfigured rule in the configuration object.