chore: update stylelint to 13.9.0
Update stylelint to support new rules and bug fixes.
Changelog
13.9.0
- Added: TAP formatter (#5062).
- Fixed: incorrect exit code when using
--report
options (#5079). - Fixed:
color-hex-case
false negatives for css-in-js object notation (#5101). - Fixed:
color-hex-length
false negatives for css-in-js object notation (#5106). - Fixed:
selector-attribute-name-disallowed-list
false positives for valueless attribute selectors (#5060).
13.8.0
- Deprecated:
StylelintStandaloneReturnValue.reportedDisables
,.descriptionlessDisables
,.needlessDisables
, and.invalidScopeDisables
..reportedDisables
will always be empty and the other properties will always be undefined, since these errors now show up in.results
instead (#4973). - Added: disable comments that are reported as errors for various reasons are now reported as standard lint errors rather than a separate class of errors that must be handled specially (#4973).
- Added:
comment-pattern
rule (#4962). - Added:
selector-attribute-name-disallowed-list
rule (#4992). - Added:
ignoreAtRules[]
toproperty-no-unknown
(#4965). - Fixed:
*-notation
false negatives for dollar variables (#5031). - Fixed:
*-pattern
missing configured pattern in violation messages (#4975).
13.7.2
- Fixed: regression for disable commands and adjacent double-slash comments (#4950).
- Fixed: use of full file path without converting it to glob (#4931).
13.7.1
- Fixed: double-slash disable comments when followed by another comment (#4913).
13.7.0
- Deprecated:
*-blacklist
,*-requirelist
and*-whitelist
rules in favour of the new*-disallowed-list
,*-required-list
and*-allowed-list
ones (#4845):-
at-rule-blacklist
. Useat-rule-disallowed-list
instead. -
at-rule-property-requirelist
. Useat-rule-property-required-list
instead. -
at-rule-whitelist
. Useat-rule-allowed-list
instead. -
comment-word-blacklist
. Usecomment-word-disallowed-list
instead. -
declaration-property-unit-blacklist
. Usedeclaration-property-unit-disallowed-list
instead. -
declaration-property-unit-whitelist
. Usedeclaration-property-unit-allowed-list
instead. -
declaration-property-value-blacklist
. Usedeclaration-property-value-disallowed-list
instead. -
declaration-property-value-whitelist
. Usedeclaration-property-value-allowed-list
instead. -
function-blacklist
. Usefunction-disallowed-list
instead. -
function-url-scheme-blacklist
. Usefunction-url-scheme-disallowed-list
instead. -
function-url-scheme-whitelist
. Usefunction-url-scheme-allowed-list
instead. -
function-whitelist
. Usefunction-allowed-list
instead. -
media-feature-name-blacklist
. Usemedia-feature-name-disallowed-list
instead. -
media-feature-name-value-whitelist
. Usemedia-feature-name-value-allowed-list
instead. -
media-feature-name-whitelist
. Usemedia-feature-name-allowed-list
instead. -
property-blacklist
. Useproperty-disallowed-list
instead. -
property-whitelist
. Useproperty-allowed-list
instead. -
selector-attribute-operator-blacklist
. Useselector-attribute-operator-disallowed-list
instead. -
selector-attribute-operator-whitelist
. Useselector-attribute-operator-allowed-list
instead. -
selector-combinator-blacklist
. Useselector-combinator-disallowed-list
instead. -
selector-combinator-whitelist
. Useselector-combinator-allowed-list
instead. -
selector-pseudo-class-blacklist
. Useselector-pseudo-class-disallowed-list
instead. -
selector-pseudo-class-whitelist
. Useselector-pseudo-class-allowed-list
instead. -
selector-pseudo-element-blacklist
. Useselector-pseudo-element-disallowed-list
instead. -
selector-pseudo-element-whitelist
. Useselector-pseudo-element-allowed-list
instead. -
unit-blacklist
. Useunit-disallowed-list
instead. -
unit-whitelist
. Useunit-allowed-list
instead.
-
- Added: syntax object acceptance to
customSyntax
option (#4839). - Added: support for
*.cjs
config files (#4905). - Added: support for descriptions in stylelint command comments (#4848).
- Added:
reportDescriptionlessDisables
flag (#4907). - Added:
reportDisables
secondary option (#4897). - Added:
*-no-vendor-prefix
autofix (#4859). - Added:
ignoreComments[]
tocomment-empty-line-before
(#4841). - Added:
ignoreContextFunctionalPseudoClasses
toselector-max-id
(#4835). - Fixed: inconsistent trailing newlines in CLI error output (#4876).
- Fixed: support for multi-line disable descriptions (#4895).
- Fixed: support for paths with parentheses (#4867).
- Fixed:
selector-max-*
(exceptselector-max-type
) false negatives forwhere
,is
,nth-child
andnth-last-child
(#4842). - Fixed:
length-zero-no-unit
TypeError for custom properties fallback (#4860). - Fixed:
selector-combinator-space-after
false positives for trailing combinator (#4878).
13.6.1
- Fixed:
max-empty-lines
TypeError from inline comment with autofix and sugarss syntax (#4821). - Fixed:
property-no-unknown
false positives for namespaced variables (#4803). - Fixed:
selector-type-no-unknown
false positives for idents within::part
pseudo-elements (#4828).
13.6.0
- Added:
ignoreSelectors[]
toblock-opening-brace-space-before
(#4640). - Fixed: false positives for all scope disables in
--report-invalid-scope-disables
(#4784). - Fixed: TypeError for CSS-in-JS when encountering a call or template expression named 'html' (#4797).
- Fixed: writing error information to
stderr
(#4799). - Fixed: minimum node version in
package.json
'sengine
field (#4790). - Fixed:
alpha-value-notation
number precision errors (#4802). - Fixed:
font-family-no-missing-generic-family-keyword
false positives for variables (#4806). - Fixed:
no-duplicate-selectors
false positives for universal selector anddisallowInList
(#4809).
13.5.0
- Added:
alpha-value-notation
rule (#4770). - Added:
color-function-notation
rule (#4760). - Added:
hue-degree-notation
rule (#4769).
13.4.1
- Fixed:
time-min-milliseconds
TypeError forignore: ["delay"]
and shorthand animation (#4783).
13.4.0
- Added:
ignore:["delay"]
totime-min-milliseconds
(#4743). - Added:
ignoreFunctions: []
tovalue-keyword-case
(#4733). - Fixed: improved performance when auto syntax is used (#4729).
- Fixed:
--report-needless-disables
respects stylelint-disable commands (#4714). - Fixed:
at-rule-property-requirelist
TypeError for comments inside of font-face (#4744). - Fixed:
declaration-block-trailing-semicolon
false positives for CSS-in-JS object notation (#4749). - Fixed:
declaration-empty-line-before
false positives for inlines styles (#4726). - Fixed:
media-feature-name-*
false positives forforced-colors
(#4775). - Fixed:
value-keyword-case
false positives WebExtension replacement keywords (#4778). - Fixed:
value-keyword-case
false positives regression for mixed-case properties and theignoreProperties
option (#4748).
13.3.3
- Fixed: autofix will respect scoped disable comments by turning off autofix for the scoped rules for the entire source; this is a continuation of the workaround added in
13.2.0
(#4705).
13.3.2
- Fixed: update postcss-css-in-js with fix for maximum call stack size exceeded error (#4701).
13.3.1
- Fixed: babel configuration conflict when using TypeScript (postcss-css-in-js/#2).
- Fixed: autofix for nested tagged template literals (#4119).