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-justifyhas 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-afterdeclaration-bang-space-afterdeclaration-bang-space-beforemedia-feature-colon-space-aftermedia-feature-colon-space-beforemedia-feature-parentheses-space-insideselector-attribute-brackets-space-insideselector-attribute-operator-space-afterselector-attribute-operator-space-beforeselector-pseudo-class-parentheses-space-inside
No longer enforced (from stylelint-a11y):
a11y/no-obsolete-attributea11y/no-obsolete-elementa11y/no-outline-none
Newly enforced rules:
alpha-value-notation:percentage, exceptProperties: opacitycolor-function-notation:moderncustom-media-pattern:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected custom media query name to be kebab-casecustom-property-pattern:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected custom property name to be kebab-casedeclaration-block-no-redundant-longhand-propertiesfont-family-name-quotes:always-where-recommendedfunction-url-quotes:alwayshue-degree-notation:anglekeyframes-name-pattern:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected keyframe name to be kebab-caseno-irregular-whitespacenumber-max-precision:4rule-empty-line-before:always-multi-line, except: first-nested, ignore: after-commentselector-id-pattern:^(a-za-z0-9*)(-a-z0-9+)*$, message: Expected id selector to be kebab-caseshorthand-property-no-redundant-valuescustom-property-no-missing-var-functiondeclaration-block-no-duplicate-custom-properties