This repository has been archived by the owner on Apr 23, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^7.10.1
->^10.0.0
Release Notes
stylelint/stylelint
v10.0.1
Compare Source
--allow-empty-input
CLI flag (#4029).color-no-invalid-hex
false positives for hashes in URLs (#4035).function-linear-gradient-no-nonstandard-direction
false positives for dollar variables (#4027).v10.0.0
Compare Source
styled
andjsx
syntax options that were replaced withcss-in-js
in v9.10.0 (#4007).--allow-empty-input
flag for the old behaviour (#3965).lib/rules/index.js
(#3923).at-rule-property-requirelist
rule (#3997).disallowInList
tono-duplicate-selectors
(#3936).ignore: ["comments"]
toblock-no-empty
(#4008).color-no-invalid-hex
false negatives for CSS-in-JS (#3957).feature-name-no-unknown
false positives forprefers-color-scheme
(#3951).function-calc-no-invalid
false positives for negative numbers (#3921).no-descending-specificity
false positives for vendor prefixed pseudo-elements (#3929).selector-max-*
false negatives for nested at-rules (#3959).value-keyword-case
autofix for single-line comments within maps (#4019).v9.10.1
Compare Source
v9.10.0
Compare Source
css-in-js
syntax option that will replace the existingstyled
andjsx
ones (#3872).function-calc-no-invalid
rule (#3833).ignore: ["next-sibling"]
toselector-max-type
(#3832).declaration-block-semicolon-space-after
autofix (#3865).CssSyntaxError
for functions in template literals (#3869).no-descending-specificity
false positives for styled-components (#3875).no-duplicate-selectors
false positives for styled-components (#3875).selector-pseudo-class-no-unknown
false positives forfocus-visible
(#3887).selector-max-universal
false positives for flush comments containing a comma (#3817).shorthand-property-redundant-values
false positives for negative values (#3888).v9.9.0
Compare Source
selector-list-comma-newline-after
autofix (#3815).value-list-max-empty-lines
autofix (#3814).ignoreSelectors: []
toselector-no-vendor-prefix
(#3748).&:extend
for Less syntax (#3824).--report-needless-disables
CLI flag (#3819).font-family-no-missing-generic-family-keyword
false positives for system fonts (#3794).v9.8.0
Compare Source
value-keyword-case
autofix (#3775).ignore: ["pseudo-classes"]
tomax-nesting-depth
(#3724).ignoreTypes:[]
toselector-type-case
(#3758).ignoreFunctions:[]
tounit-no-unkown
(#3736).at-rule-*
false positives for Less variables and mixins (#3767).max-empty-lines
false positives for final newlines (#3785).v9.7.1
Compare Source
at-rule-*
false positives for Less variables and mixins (#3759).v9.7.0
Compare Source
media-feature-parentheses-space-inside
autofix (#3720).selector-descendant-combinator-no-non-space
autofix (#3565).unit-case
autofix (#3725).max-empty-lines
false positives for empty lines before</style>
(#3708).selector-max-specificity
false positives for functional psuedo-classes (#3711).v9.6.0
Compare Source
no-empty-first-line
rule (#3650).at-rule-name-space-after
autofix (#3653).block-closing-brace-empty-line-before
autofix (#3598).block-closing-brace-space-before
autofix (#3673).comment-whitespace-inside
autofix (#3619).declaration-bang-space-after
autofix (#3598).declaration-bang-space-before
autofix (#3592).declaration-colon-newline-after
autofix (#3588).function-comma-space-after
autofix (#3555).function-comma-space-before
autofix (#3596).function-name-case
autofix (#3674).function-max-empty-lines
autofix (#3645).function-parentheses-newline-inside
autofix (#3601).function-whitespace-after
autofix (#3648).media-feature-colon-space-after
autofix (#3623).media-feature-colon-space-before
autofix (#3637).media-feature-name-case
autofix (#3685).media-feature-range-operator-space-after
autofix (#3639).media-feature-range-operator-space-before
autofix (#3618).media-query-list-comma-newline-after
autofix (#3643).media-query-list-comma-space-after
autofix (#3607).media-query-list-comma-space-before
autofix (#3640).function-parentheses-space-inside
autofix (#3563).selector-attribute-brackets-space-inside
autofix (#3605).selector-attribute-operator-space-after
autofix (#3641).selector-attribute-operator-space-before
autofix (#3603).selector-pseudo-class-case
autofix (#3671).selector-pseudo-class-parentheses-space-inside
autofix (#3646).selector-type-case
autofix (#3668).no-eol-whitespace
autofix (#3615).no-extra-semicolons
autofix (#3574).value-list-comma-newline-after
autofix (#3616).value-list-comma-space-after
autofix (#3558).value-list-comma-space-before
autofix (#3597).baseIndentLevel
toindentation
(#3557).linebreaks
TypeError (#3636).max-empty-lines
incorrect line reporting (#3530).media-query-list-comma-newline-after
false positives for trailing comment (#3657).no-descending-specificity
false positives for CSS Modules functional pseudo-classes (#3623).v9.5.0
Compare Source
--print-config
CLI flag (#3532).block-closing-brace-newline-before
autofix (#3442).block-opening-brace-newline-before
autofix (#3518).block-opening-brace-space-after
autofix (#3520).block-opening-brace-newline-after
autofix (#3441).declaration-block-semicolon-newline-after
autofix (#3545).declaration-block-semicolon-space-before
autofix (#3554).declaration-colon-space-after
autofix (#3538).selector-list-comma-newline-before
autofix (#3517).selector-list-comma-space-after
autofix (#3490).unix
formatter (#3524).selector-descendant-combinator-no-non-space
false positives for calculations with parenthesis (#3508).v9.4.0
Compare Source
linebreaks
rule (#3289).compact
formatter (#3488).at-rule-semicolon-newline-after
autofix (#3450).block-closing-brace-newline-after
autofix (#3443).block-opening-brace-space-before
autofix (#3438).declaration-block-trailing-semicolon
autofix (#3382).declaration-colon-space-before
autofix (#3445).property-case
autofix (#3448).selector-combinator-space-after
autofix (#3446).selector-combinator-space-before
autofix (#3457).selector-list-comma-space-before
autofix (#3447).block-opening-brace-newline-after
false positives for nested rule-sets prefixed with comments (#3383).declaration-block-trailing-semicolon
report of errors with the--fix
option (#3493).font-family-name-quotes
false positives forsystem-ui
system font (#3463).keyframes-name-pattern
support for raw JS RegExp (#3437).media-feature-name-no-unknown
false positives for level 5 names (#3397).no-descending-specificity
false positives for #{&} (#3420).no-missing-end-of-source-newline
false positives for style attributes (#3485).v9.3.0
Compare Source
<style>
tags andstyle=""
attributes in XML and XSLT files (#3386).globbyOptions
option (#3339).keyframes-name-pattern
rule (#3321).media-feature-name-value-whitelist
rule (#3320).selector-pseudo-element-colon-notation
autofix (#3345)..vue
files throwing errors for<style lang="stylus">
and<style lang="postcss">
(#3331).declaration-block-no-*
false positives for non-standard syntax (#3381).function-whitespace-after
false positives for "/" (#3132).length-zero-no-unit
incorrect autofix for at-includes (#3347).max-nesting-depth
false positives for nested properties (#3349).no-empty-source
false positives on vue external sources<style src="*">
tag (#3331).max-line-length
false positives for non-CSS blocks (#3367).no-eol-whitespace
false positives for non-CSS blocks (#3367).no-extra-semicolons
false positives for non-CSS blocks (#3367).no-missing-end-of-source-newline
false positives for non-CSS blocks (#3367).v9.2.1
Compare Source
cache
option hiding CssSyntaxError outputs (#3258).no-descending-specificity
false positives for Sass nested properties (#3283).selector-pseudo-class-no-unknown
false positives proprietary webkit pseudo classes when applied to a simple selector (#3271).v9.2.0
Compare Source
selector-max-pseudo-class
rule (#3195).require('stylelint')
time (#3242).indentation
false positives for at-root (#3225).max-empty-lines
false positives for non-CSS blocks (#3229).no-empty-source
false positives for non-CSS blocks (#3240).string-no-newline
false positives for non-CSS blocks (#3228).v9.1.3
Compare Source
v9.1.2
Compare Source
v9.1.1
Compare Source
signal-exit
dependency (#3186).v9.1.0
Compare Source
ignore: ["first-nested"]
toat-rule-empty-line-before
(#3179).ignore: ["first-nested"]
torule-empty-line-before
(#3179).v9.0.0
Compare Source
--max-warnings
CLI flag (#2942).selector-combinator-*list
rules (#3088).selector-pseudo-element-*list
rules (#3104).ignore: ["first-nested"]
tocustom-property-empty-line-before
(#3104).ignore: ["first-nested"]
todeclaration-empty-line-before
(#3103).ignoreProperties: []
toproperty-no-vendor-prefix
(#3089).font-family-name-quotes
unicode range increased (#2974).selector-max-id
in nested at-statements (#3113).v8.4.0
Compare Source
except: ["after-closing-brace"]
toblock-closing-brace-empty-line-before
(#3011).postcss-sass
(#3040).*.pcss
files (#3064).font-family-no-missing-generic-family-keyword
configuration (#3039).indentation
autofix for HTML (#3044).v8.3.1
Compare Source
font-family-no-missing-generic-family-keyword
false positives for at-font-face (#3034).v8.3.0
Compare Source
<style>
tags and markdown fences in.vue
and.html
files (#2975).font-family-no-missing-generic-family-keyword
rule (#2930).no-duplicate-at-import-rules
rule (#2963).number-leading-zero
autofix (#2921).number-no-trailing-zeros
autofix (#2947).shorthand-property-no-redundant-values
autofix (#2956).string-quotes
autofix (#2959).ignore: ["custom-properties"]
option tolength-zero-no-unit
(#2967).except: ["inside-block"]
option torule-empty-line-before
(#2982).ignoreValues
tovalue-no-vendor-prefix
(#3015).ignoreMediaFeatureNames
tounit-blacklist
(#3027).comment-empty-line-before
false positives for shared-line comments (#2986).unit-*
false positives for spaceless multiplication (#2948).v8.2.0
Compare Source
length-zero-no-unit
autofix (#2861).selector-max-specificity
support for level 4 evaluation context pseudo-classes (#2857).ignoreUnits
option tonumber-max-precision
(#2941).ignoreSelectors
option toselector-max-specificity
(#2857).ignoreProperties
option tovalue-keyword-case
(#2937).*-empty-line-before
false negatives and positives when two or moreexcept: [*]
options were triggered (#2920).*-empty-line-before
false positives for CSS in HTML (#2854).rule-empty-line-before
false positives forignore: ["inside-block"]
and CSS in HTML (#2894).rule-empty-line-before
false positives forexcept: ["after-single-line-comment"]
and preceding shared-line comments (#2920).selector-list-comma-newline-after
false positives for shared-line comments separated by more than once space (#2915).selector-pseudo-class-no-unknown
false positives when using chained pseudo-classes (#2810).string-quotes
false positives for@charset
and single quotes (#2902).unit-no-unknown
false positives for spaceless multiplication and division incalc()
functions (#2848).v8.1.1
Compare Source
--ignore-pattern
in CLI (#2851).v8.1.0
Compare Source
codeFilename
tocreateStylelintResult
for raw code linting standalone API (#2450).ignorePattern
option (--ignore-pattern
in CLI), to allow patterns of files to ignored (#2834).--fix
CLI parameter orfix: true
Node.js API options property. Newly supported rules:color-hex-length
(#2781).no-missing-end-of-source-newline
(#2772).*-empty-line-before
false positives shared-line comments and"first-nested"
option (#2827).color-hex-length
false positives for ID references inurl
functions (#2806).indentation
false positives for Less parametric mixins with rule block/snippet (#2744).no-empty-source
compatability withpostcss-html
custom syntax (#2798).no-extra-semicolons
false negatives where instances were not detected when followed by multiple comments (#2678).selector-max-specificity
cannot parse selector violation for Less mixins (#2677).v8.0.0
Compare Source
This release is accompanied by:
~
) inpackage.json
is now recommended, e.g."stylelint": "~8.0.0"
, to guarantee the results of your builds (#1865).stylelint-config-recommended
. This config only turns on the possible error rules.stylelint-config-standard
now builds on top of the recommended config by turning on over 60 additional stylistic rules.Changes:
7.8.0
&7.12.0
(#2422 & #2693).block-no-single-line
.custom-property-no-outside-root
declaration-block-no-ignored-properties
.declaration-block-properties-order
.function-url-data-uris
.media-feature-no-missing-punctuation
.no-browser-hacks
.no-indistinguishable-colors
.no-unsupported-browser-features
.root-no-standard-properties
rule-nested-empty-line-before
.rule-non-nested-empty-line-before
.selector-no-attribute
.selector-no-combinator
.selector-no-empty
.selector-no-id
.selector-no-type
.selector-no-universal
.selector-root-no-composition
.stylelint-disable-reason
.time-no-imperceptible
.7.8.0
(#2433)."all-nested"
option forat-rule-empty-line-before
."blockless-group"
option forat-rule-empty-line-before
."between-comments"
option forcomment-empty-line-before
."at-rules-without-declaration-blocks"
option formax-nesting-depth
.postcss
from@5
to@6
(#2561).report-needless-disables
now exits with non-zero code (#2341).*-blacklist
and*-whitelist
(andignore* []
secondary options) are now case sensitive. Use regular expressions with thei
flag for case insensitivity (#2709).*-empty-line-before
now correctly handle shared-line comments (#2262).*-empty-line-before
now consider line as empty if it contains whitespace only (#2440).function-linear-gradient-no-nonstandard-direction
now checks all linear-gradients in a value list (#2496).selector-max-compound-selectors
now checks all resolved selectors, rather than just the deepest (#2350).disableDefaultIgnores
option (--disable-default-ignores
in CLI), to allow linting ofnode_modules
andbower_components
directories (#2464)..stylelintignore
(#2464).ignore: ["child"]
option toselector-max-type
(#2701).declaration-block-no-redundant-longhand-properties
anddeclaration-block-no-shorthand-property-overrides
understand more shorthand properties (#2354).selector-max-type
no longer produces false negatives for when child, next-sibling and following-sibling combinators are used withignore: ["descendant"]
(#2701).Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.