Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 635 Bytes

File metadata and controls

37 lines (25 loc) · 635 Bytes

root-no-standard-properties

Deprecated: instead use the community stylelint-suitcss plugin pack

Disallow standard properties inside :root rules.

    :root { color: #333 }
/** ↑       ↑
 * This selector and these types of standard properties */

This rule ignores $sass and @less variables.

Options

true

The following patterns are considered warnings:

:root { color: pink; }
a, :root { top: 0; }

The following patterns are not considered warnings:

:root { --foo: 0; }
a, :root { --foo: 0; }