v2.0.0 – Stylelint 14
2.0.0 (2023-08-17)
Features
- Update stylelint to v14 for compatibility with PostCSS v8 (#13).
- Update all config dependencies to their latest releases, compatible with stylelint v14 (#13).
- Remove
stylelint-a11y
, which is no longer maintained and does not support stylelint v14.no-text-align-justify
has been replaced withdeclaration-property-value-disallowed-list
(#13). - Stop enforcing
function-calc-no-invalid
, which has been removed from stylelint (#13) - Change enforced rules from stylelint-config-standard and stylelint-config-prettier.
BREAKING CHANGES
The configuration now mandates stylelint v14, doesn’t use stylelint-a11y
, and follows changes in enforced rules from stylelint-config-standard
and stylelint-config-prettier
.
No longer enforced (all formatting related):
at-rule-name-space-after
declaration-bang-space-after
declaration-bang-space-before
media-feature-colon-space-after
media-feature-colon-space-before
media-feature-parentheses-space-inside
selector-attribute-brackets-space-inside
selector-attribute-operator-space-after
selector-attribute-operator-space-before
selector-pseudo-class-parentheses-space-inside
No longer enforced (from stylelint-a11y
):
a11y/no-obsolete-attribute
a11y/no-obsolete-element
a11y/no-outline-none
Newly enforced rules:
alpha-value-notation
:percentage, exceptProperties: opacity
color-function-notation
:modern
custom-media-pattern
:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected custom media query name to be kebab-case
custom-property-pattern
:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected custom property name to be kebab-case
declaration-block-no-redundant-longhand-properties
font-family-name-quotes
:always-where-recommended
function-url-quotes
:always
hue-degree-notation
:angle
keyframes-name-pattern
:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected keyframe name to be kebab-case
no-irregular-whitespace
number-max-precision
:4
rule-empty-line-before
:always-multi-line, except: first-nested, ignore: after-comment
selector-id-pattern
:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected id selector to be kebab-case
shorthand-property-no-redundant-values
custom-property-no-missing-var-function
declaration-block-no-duplicate-custom-properties