stylelint
Advanced tools
Changelog
6.7.1
block-*-brace-*-before
CRLF (\r\n
) warning positioning.no-descending-specificity
now does comparison of specificity using ints, rather than strings.selector-no-type
and selector-type-case
now ignore non-standard keyframe selectors (e.g. within an SCSS mixin).selector-type-no-unknown
no longer reports fractional keyframe selectors.Changelog
6.7.0
ignoreFunctions: []
option for function-name-case
.findFontFamily
util correctly interpret <font-size>/<line-height>
values with unitless line-heights.indentation
better understands nested parentheticals that aren't just Sass maps and lists.no-unsupported-browser-features
message now clearly states that only fully supported features are allowed.selector-max-specificity
no longer reports that a selector with 11 elements or more has a higher specificity than a selector with a single classname.selector-type-no-unknown
no longer warns for complex keyframe selectors.Changelog
6.6.0
number-zero-length-no-unit
. Use length-zero-no-unit
instead.property-*-blacklist
and property-*-whitelist
. Use declaration-property-*-blacklist
and declaration-property-*-whitelist
instead.-v
and --verbose
CLI flags. Use -f verbose
or --formatter verbose
instead.stylelint.util.styleSearch()
. Use the external module style-search instead.ignorePath
(for JS) and --ignore-path
(for CLI).-h
alias for --help
CLI flag.at-rule-blacklist
rule.at-rule-name-newline-after
rule.at-rule-whitelist
rule.ignore: "blockless-group"
option for at-rule-empty-line-before
.ignoreAtRules: []
option for at-rule-empty-line-before
.function-blacklist
now accepts regular expressions.function-whitelist
now accepts regular expressions.at-rule-name-newline-after
now correctly accepts one or more newlines.declaration-block-semicolon-newline-before
now correctly accepts one or more newlines.function-url-quotes
ignores values containing $sass
and @less
variables.function-whitespace-after
ignores postcss-simple-vars
-style interpolation.indentation
better understands nested parentheticals, like nested Sass maps.no-extra-semicolons
reports errors on the correct line.selector-combinator-space-*
rules now ignore escaped combinator-like characters.selector-type-no-unknown
ignores non-standard usage of percentage keyframe selectors (e.g. within an SCSS mixin).value-keyword-case
now ignores custom idents of properties animation
, font
, list-style
.Changelog
6.5.1
"emptyLineBefore"
option for declaration-block-properties-order
. If you use this option, please consider creating a plugin for the community."single-where-required"
, "single-where-recommended"
, "single-unless-keyword"
, "double-where-required"
, "double-where-recommended"
and "double-unless-keyword"
options for font-family-name-quotes
. Instead, use the "always-unless-keyword"
, always-where-recommended
or always-where-required
options together with the string-quotes
rule."single"
, "double"
and "none"
options for function-url-quotes
. Instead, use the "always"
or "never"
options together with the string-quotes
rule."hierarchicalSelectors"
option for indentation
. If you use this option, please consider creating a plugin for the community.selector-list-comma-*
rules now ignore Less mixins.selector-max-compound-selectors
no longer errors on Less mixins.selector-type-no-unknown
now ignores all An+B notation and linguistic pseudo-classes.selector-type-no-unknown
now ignores obsolete HTML tags and <hgroup>
.Changelog
6.5.0
selector-max-compound-selectors
rule.babel-polyfill
removed so it doesn't clash with other processes using babel-polyfill
.selector-type-case
and selector-type-no-unknown
rules now ignore SCSS placeholder selectors.Changelog
6.4.2
selector-pseudo-class-case
, selector-pseudo-class-no-unknown
, selector-pseudo-element-case
, selector-pseudo-element-no-unknown
rules now ignore SCSS variable interpolation.selector-type-no-unknown
now ignores nested selectors and keyframe selectors.Changelog
6.4.1
shorthand-property-no-redundant-values
now ignores background
, font
, border
, border-top
, border-bottom
, border-left
, border-right
, list-style
, transition
properties.unit-no-unknown
now ignores hex colors.Changelog
6.4.0
keyframe-declaration-no-important
rule.selector-attribute-operator-blacklist
rule.selector-attribute-operator-whitelist
rule.selector-pseudo-class-no-unknown
rule.selector-type-no-unknown
rule.message
.postcss-selector-parser
and register them as PostCSS warnings, providing a better UX for editor plugins.font-family-name-quotes
, media-feature-no-missing-punctuation
, media-query-list-comma-newline-after
, media-query-list-comma-newline-before
, media-query-list-comma-space-after
and media-query-list-comma-space-before
rules now better ignore SCSS, Less variables and nonstandard at-rules.no-unknown-animations
now ignores ease
value.unit-blacklist
, unit-case
, unit-no-unknown
, unit-whitelist
now better accounts interpolation.unit-no-unknown
no longer breaks Node.js 0.12 (because we've included the Babel polyfill).value-keyword-case
now ignores custom idents of properties animation-name
, counter-increment
, font-family
, grid-row
, grid-column
, grid-area
, list-style-type
.always-multi-line
in rule block-opening-brace-newline-before
documentation.Changelog
6.3.3
block-closing-brace-newline-before
no longer delivers false positives for extra semicolon.declaration-block-no-ignored-properties
now detects use of vertical-align
with block-level elements.font-family-name-quotes
is now case insensitive when hunting for font-family properties.number-zero-length-no-unit
now ignores deg
, grad
, turn
and rad
units.selector-no-type
does a better job when ignoring descendant and compound selectors.