unstale

npm / stylelint

stylelint

What changed in stylelint 10 to 18, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.

112 breaking1 security6 deprecations64 new APIs and options25 performance16 behavior and defaults8 tooling129 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

stylelint 1859 changes

Breaking changes 28

  • The latest standard config now turns on this rule.

    18.0.0upgrade guide

  • Built-in formatters use the color option to force color on or off rather than checking process arguments. When unset, FORCE_COLOR takes precedence over NO_COLOR, and NODE_DISABLE_COLORS or FORCE_COLOR=0 disables colors.

    18.0.0upgrade guideupgrade guide

  • Support for filename-less and extension-less CommonJS-style locator paths was removed.

    18.0.0release notesupgrade guideupgrade guide

  • The context.fix property was removed.

    18.0.0release notesupgrade guide

  • The deprecated property is removed; plugins should pass a fix callback to the report utility and set meta.fixable to true.

    18.0.0upgrade guideupgrade guide

  • The declaration-block-single-line-max-declarations rule was removed.

    18.0.0release notesupgrade guideupgrade guide

  • The deprecated propertiesSyntax option is removed; use the shared languageOptions configuration property instead.

    18.0.0upgrade guide

  • The rule no longer supports *syntax options.

    18.0.0release notes

  • The deprecated typesSyntax option is removed; use the shared languageOptions configuration property instead.

    18.0.0upgrade guide

  • The rule no longer reports values that cannot be parsed or invalid math expressions; enable value-no-invalid to keep reporting these problems.

    18.0.0upgrade guide

  • Locator paths no longer support CommonJS-style filename-less or extension-less paths; configs must use full paths.

    18.0.0upgrade guide

  • Packages are no longer resolved from npm's global node_modules directory; install packages used by the config locally or resolve them explicitly.

    18.0.0upgrade guide

  • Separate the --fix value with = instead of a space; otherwise the value is read as a file path.

    18.0.0upgrade guide

  • When color is unset, FORCE_COLOR takes precedence over NO_COLOR; the color option and its flags take precedence over these environment variables.

    18.0.0upgrade guide

  • The rule uses the CSSTree Syntax Reference for known functions and ignores vendor-prefixed functions.

    18.0.0release notes

  • Resolution of packages from the global node_modules directory was removed.

    18.0.0release notesupgrade guideupgrade guide

  • The flag now supports only braceExpansion, caseSensitiveMatch, dot, extglob, followSymbolicLinks and ignore.

    18.0.0upgrade guide

  • globbyOptions now supports only a subset of options.

    18.0.0release notesupgrade guideupgrade guide

  • The string and verbose formatters add hyperlinks in any terminal except in CI or on Windows outside Windows Terminal; detection no longer depends on color, FORCE_HYPERLINK or a known-terminal list.

    18.0.0release notesupgrade guideupgrade guide

  • Support for Node.js versions less than 22.22.2, 24.15.0 and 26.0.0, including end-of-life 20.x, 23.x and 25.x, was removed.

    18.0.0release notesupgrade guideupgrade guide

  • Plugin locator paths no longer support CommonJS-style filename-less or extension-less paths; configs must use full paths.

    18.0.0upgrade guide

  • Plugins can access the PostCSS version Stylelint uses from the result object, avoiding cross-version node rebuilding.

    18.0.0upgrade guide

  • The ignoreSelectors option was removed.

    18.0.0release notesupgrade guide

  • The latest standard config now turns on this rule.

    18.0.0upgrade guide

  • The latest standard config now turns on this rule.

    18.0.0upgrade guide

  • The latest standard config now turns on this rule.

    18.0.0upgrade guide

  • The CLI now parses arguments with node:util.parseArgs, accepting fewer flag spellings. Use long kebab-case flags, separate short-flag values with a space, attach --fix values with =, and use --no- forms for false boolean flags.

    18.0.0upgrade guide

  • TypeScript configs are loaded by Node.js built-in type stripping instead of the typescript package. Only erasable syntax is supported; use import type and replace syntax such as enum and namespace.

    18.0.0upgrade guide

New APIs and options 8

Performance 3

  • Import and cache performance improved by replacing file-entry-cache.

    18.0.0release notes

  • Import performance improved by lazily loading css-tree.

    18.0.0release notes

  • Performance for referenceFiles was fixed.

    18.0.0release notes

Behavior and default changes 7

Tooling 1

  • The CLI now parses arguments with node:util.parseArgs.

    18.0.0release notes

Fixes and other changes 12

  • Fixed false negatives for var() values.

    18.0.0release notes

  • Fixed the Config['extends'] type for configuration objects.

    18.0.0release notes

  • Fixed false negatives for custom properties defined in referenceFiles.

    18.0.0release notes

  • Fixed false positives for recently introduced properties.

    18.0.0release notes

  • Fixed false positives and negatives for @property with a list of names.

    18.0.0release notes

  • Fixed false negatives for contain-intrinsic-size.

    18.0.0release notes

  • Fixed false negatives for contain-intrinsic-size and for flow-relative properties overridden by physical shorthands.

    18.0.0release notes

  • Fixed false negatives for values containing known or registered custom properties, and false positives and negatives for files in a referenceFiles bundle.

    18.0.0release notes

  • The rule now substitutes declared custom-property values before checking declarations, fixing false negatives. For registered custom properties, it uses values matching the registered syntax or a value of that syntax.

    18.0.0upgrade guide

  • Fixed the exit code when all errors in a file are suppressed and other problems are reported.

    18.0.0release notes

  • Fixed --fix for files where the only change is removal of a byte order mark.

    18.0.0release notes

  • Fixed false negatives for physical shorthand properties.

    18.0.0release notes

stylelint 17165 changes

Breaking changes 52

  • The propertiesSyntax option was deprecated; use the shared languageOptions configuration property instead.

    17.5.0docs

  • The typesSyntax option was deprecated; use the shared languageOptions configuration property instead.

    17.5.0docs

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options; regex support was added.

    17.0.0upgrade guideupgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options; regex support was added.

    17.0.0upgrade guideupgrade guide

  • The selector-max-id option has been removed because checking context functional pseudo classes is now the rule's default behaviour.

    17.0.0upgrade guide

  • The CommonJS Node.js API was removed.

    17.0.0release notesupgrade guide

  • The CommonJS Node.js API has been removed; use the ESM API and update config locators to full paths.

    17.0.0upgrade guide

  • The notes suggest this community-maintained package as an alternative to the removed GitHub formatter.

    17.0.0upgrade guide

  • The rule now behaves consistently for vendor prefixes.

    17.0.0release notes

  • The rule now checks properties as-is rather than also checking prefixed ones; configure the prefixed properties you want to check.

    17.0.0upgrade guideupgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • The default fix mode changed to strict.

    17.0.0release notes

  • Using fix=false to turn off fixing is no longer supported; remove the flag entirely instead.

    17.0.0upgrade guideupgrade guide

  • The default fix mode is now strict, which fixes problems only when the source has no syntax errors; use --fix=lax to restore the previous behaviour.

    17.0.0upgrade guideupgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • The GitHub formatter was removed.

    17.0.0release notesupgrade guide

  • The built-in GitHub formatter has been removed; use a community formatter such as @csstools/stylelint-formatter-github.

    17.0.0upgrade guide

  • Rules now behave consistently for vendor prefixes and case.

    17.0.0release notesupgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • The rule calculates specificity for standard CSS nesting according to the CSS Nesting specification; nonstandard nesting users should turn it off.

    17.0.0upgrade guideupgrade guide

  • The rule's behavior changed for standard CSS nesting.

    17.0.0release notes

  • The rule resolves selectors according to standard nesting before checking them; users of nonstandard nesting should turn it off.

    17.0.0upgrade guideupgrade guide

  • Support for Node.js versions less than 20.19.0 has been removed.

    17.0.0upgrade guide

  • The output property was removed from the resolved object returned by the Node.js API.

    17.0.0release notes

  • Support for Node.js versions earlier than 20.19.0 was removed.

    17.0.0release notesupgrade guide

  • The resolved result no longer has the deprecated output property; use result.code for fixed code and result.report for formatted problems.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • The rule now checks properties as-is when applying ignoreProperties; configure the prefixed property names you want to ignore.

    17.0.0upgrade guideupgrade guide

  • report now throws for ambiguous position arguments; plugins must provide a node and complete valid position or index ranges.

    17.0.0upgrade guideupgrade guide

  • The selector-class-pattern option has been removed because it is incompatible with standard CSS Nesting.

    17.0.0upgrade guide

  • The resolveNestedSelectors option was removed.

    17.0.0release notesupgrade guide

  • The rule now accounts for standard CSS nesting and modern functional pseudo-classes, linting selectors as written without desugaring nesting or separately evaluating functional pseudo-classes.

    17.0.0upgrade guide

  • The rule no longer desugars nesting or evaluates functional pseudo-classes separately; configured maximums may need to increase.

    17.0.0upgrade guideupgrade guide

  • The rule no longer desugars nesting or evaluates functional pseudo-classes separately, so source selectors are linted as-is.

    17.0.0upgrade guideupgrade guide

  • The rule no longer desugars nesting or evaluates functional pseudo-classes separately, so source selectors are linted as-is.

    17.0.0upgrade guideupgrade guide

  • The rule now accounts for standard CSS nesting and modern functional pseudo-classes, linting selectors as written without desugaring nesting or separately evaluating functional pseudo-classes.

    17.0.0upgrade guide

  • The checkContextFunctionalPseudoClasses option was removed.

    17.0.0release notesupgrade guide

  • The rule no longer desugars nesting or evaluates functional pseudo-classes separately, so source selectors are linted as-is.

    17.0.0upgrade guideupgrade guide

  • The rule calculates specificity for standard CSS nesting according to the CSS Nesting specification; configured maximum specificity may need adjustment.

    17.0.0upgrade guideupgrade guide

  • The rule no longer desugars nesting or evaluates functional pseudo-classes separately, so source selectors are linted as-is.

    17.0.0upgrade guideupgrade guide

  • The rule now accounts for standard CSS nesting and modern functional pseudo-classes, linting selectors as written without desugaring nesting or separately evaluating functional pseudo-classes.

    17.0.0upgrade guide

  • The rule resolves selectors according to standard nesting before checking them; users of nonstandard nesting should turn it off.

    17.0.0upgrade guideupgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • Vendor-prefix and case handling is now consistent with other list rules and ignore options.

    17.0.0upgrade guide

  • The rule now checks values as-is when applying ignoreValues; configure the prefixed values you want to ignore.

    17.0.0upgrade guideupgrade guide

Deprecations 1

New APIs and options 23

  • Adds the ignoreFunctions option to color-named.

    17.15.0release notes

  • Adds the ignoreFunctions option to color-no-hex.

    17.15.0release notes

  • Adds the selector-no-unmatchable rule.

    17.15.0release notes

  • Adds autofixed to the result object.

    17.11.0release notes

  • Adds a loader property to experimental referenceFiles for cases where the order of appearance in reference styles matters.

    17.11.0release notes

  • Added the selector-no-invalid rule.

    17.10.0release notes

  • Added the unit-layout-mappings rule to enforce logical or physical properties, units and keywords.

    17.10.0release notes

  • Added the value-keyword-layout-mappings rule to enforce logical or physical properties, units and keywords.

    17.10.0release notes

  • Adds an experimental Node.js API option for cancellation support.

    17.9.0release notes

  • Adds maxWarnings to the configuration object.

    17.9.0release notes

  • Adds an experimental configuration property that makes the no-unknown-animations, no-unknown-custom-media and no-unknown-custom-properties rules more useful.

    17.9.0release notes

  • Adds the languageOptions.directionality configuration property.

    17.8.0release notes

  • Adds the property-layout-mappings rule.

    17.8.0release notes

  • Adds the relative-selector-nesting-notation rule.

    17.8.0release notes

  • Adds the selector-no-deprecated rule.

    17.8.0release notes

  • Supports extending units in languageOptions; the extended units apply to rules such as declaration-property-value-no-unknown.

    17.6.0release notes

  • Adds the ignoreMediaFeatureNameValues option.

    17.5.0release notes

  • Adds the ignoreAtRules option, defaulting to an empty array, to let developers ignore at-rules.

    17.4.0release notes

  • Adds the ignoreMediaFeatureNames option, defaulting to an empty array, to let developers ignore media feature names.

    17.4.0release notes

  • Adds the display-notation rule. The release notes say its options have not yet been chosen for the standard config.

    17.1.0release notes

  • The except option now accepts after-block.

    17.0.0release notes

  • The except option now accepts after-block.

    17.0.0release notes

  • The rule now supports the ignoreSelectors secondary option.

    17.0.0release notes

Performance 22

  • Improved the performance of getting module paths.

    17.14.0release notes

  • TIMING is dynamically imported only when used, improving performance.

    17.14.0release notes

  • Improves the performance of *-empty-line-before rules.

    17.4.0release notes

  • Improves the performance of no-irregular-whitespace.

    17.4.0release notes

  • Improves the performance of selector cloning rules.

    17.4.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • Improves the performance of declaration-property-value-no-unknown.

    17.3.0release notesrelease notes

  • The rule's performance was improved.

    17.3.0release notes

  • Performance of *-list rules was improved.

    17.3.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • Performance of *-notation rules was improved.

    17.3.0release notes

  • Rule sequencing performance was improved.

    17.3.0release notes

  • Performance of selector-max-* rules was improved.

    17.3.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • The rule's performance was improved.

    17.3.0release notes

  • Performance of config augmentation and module imports was fixed, contributing to faster execution and lower memory use on larger codebases.

    17.2.0release notes

  • Performance of config override matching was fixed, contributing to faster execution and lower memory use on larger codebases.

    17.2.0release notes

  • Performance of config resolution was fixed, contributing to faster execution and lower memory use on larger codebases.

    17.2.0release notes

  • Performance of rule resolution was fixed, contributing to faster execution and lower memory use on larger codebases.

    17.2.0release notes

Behavior and default changes 2

  • Syntax rules now account for standard CSS nesting and modern functional pseudo-classes.

    17.0.0release notes

  • Semantic rules now account for standard CSS nesting.

    17.0.0release notes

Tooling 2

  • Version 1.0.0 is available to help with first-time Stylelint setup.

    17.7.0release notes

  • The Stylelint Language Server has its first release.

    17.5.0release notes

Fixes and other changes 63

  • Fixes false negatives for uppercase property names.

    17.16.0release notes

  • Fixes false negatives for uppercase units.

    17.16.0release notes

  • Fixes false positives for anchor positioning.

    17.15.0release notes

  • Fixes autofix behavior for the font shorthand.

    17.15.0release notes

  • Fixes false positives for interpolated inline expressions.

    17.15.0release notes

  • Fixes false negatives for pseudo-elements, combinators and nested :has().

    17.15.0release notes

  • Autofix no longer produces an invalid background shorthand when background-size is present.

    17.14.1release notes

  • The quiet option now suppresses report* warning reports.

    17.14.1release notes

  • Fixed the reported range of unknown rules.

    17.14.1release notes

  • Fixed false positives for shared-line comments when except: ["after-single-line-comment"] is configured.

    17.14.1release notes

  • Fixed false negatives for unspaced + and - operators following a * or / operator.

    17.14.0release notes

  • Fixes false negatives for interleaved non-consecutive duplicate properties when ignore is set to consecutive-duplicates(-*).

    17.13.0release notes

  • Fixes false positives for nested selectors.

    17.13.0release notes

  • Fixes false positives for install.

    17.13.0release notes

  • Fixed range reporting when using comments.

    17.12.0release notes

  • Fixed false negatives for custom properties defined in reference files.

    17.12.0release notes

  • Fixes false positives for caption-side.

    17.12.0release notesrelease notes

  • Fixed node_modules ignore behavior for codeFilename paths containing a dot-prefixed directory.

    17.11.1release notes

  • Fixed the rule's range for contiguous redundant longhand properties.

    17.11.1release notes

  • Fixed inconsistent error messages when a module is not found.

    17.10.0release notes

  • Fixed false negatives for property names in declaration values.

    17.10.0release notes

  • Fixed false positives for @page properties.

    17.10.0release notes

  • Fixed false positives for nested webkit-scrollbar parts.

    17.10.0release notes

  • Fixed a regression that caused ConfigurationError for custom syntaxes.

    17.9.1release notes

  • Fixed autofix for page-break-*: always.

    17.9.1release notes

  • Fixed false positives for ::part().

    17.9.1release notes

  • Avoids false positives when URLs have modifiers.

    17.7.0release notes

  • The CLI flag now hides internal properties.

    17.7.0release notes

  • Problem messages are clearer by removing filler words and leading with the problem.

    17.7.0release notes

  • Avoids false positives for :has().

    17.7.0release notes

  • Fixes missing ruleMetadata when linting multiple files with overrides.

    17.6.0release notes

  • node_modules is now ignored when codeFilename is used in the Node.js API.

    17.5.0release notes

  • Fixes TS7016 for imported css-tree types.

    17.5.0release notes

  • The rule no longer reports false positives for function arguments.

    17.5.0release notes

  • The rule no longer reports false positives for calc-size() containing the size keyword.

    17.5.0release notes

  • The rule no longer misses equivalent compound selectors.

    17.5.0release notes

  • The rule no longer reports false positives for @mixin and @scope.

    17.5.0release notes

  • The rule no longer misses cases involving types.

    17.5.0release notes

  • Fixes false negatives for at-rule descriptors.

    17.4.0release notes

  • Fixes false positives for corner-shape.

    17.4.0release notes

  • Fixes false positives for double-slashed properties.

    17.4.0release notes

  • The rule no longer misses math functions inside non-math functions.

    17.3.0release notes

  • The rule no longer reports false positives for calc() with mixed operations.

    17.3.0release notes

  • The rule now reports correct ranges for multiple math functions.

    17.3.0release notes

  • The rule no longer reports false positives for a mix of tabs and spaces.

    17.3.0release notes

  • Fixed false negatives for math functions.

    17.2.0release notes

  • Fixed false negatives for matching escaped selectors.

    17.2.0release notes

  • Fixed false negatives for layers with blocks.

    17.2.0release notes

  • Fixed resolution of configs, plugins, processors, and custom syntaxes in Yarn PnP environments.

    17.1.1release notes

  • Fixes TypeScript errors involving GlobbyOptions.

    17.1.0release notes

  • Fixes false negatives and positives for relative colors.

    17.1.0release notes

  • Fixes false negatives for relative colors.

    17.1.0release notes

  • Fixed false positives for declarations within feature-value-blocks.

    17.0.0release notes

  • Fixed false negatives for short and long combinations.

    17.0.0release notes

  • Fixed Windows drive letter casing inconsistencies when matching patterns against file paths.

    17.0.0release notes

  • Fixed false positives for namespaced dollar variables and range context queries.

    17.0.0release notes

  • Fixed false positives for CSS-in-JS.

    17.0.0release notes

  • Fixed false negatives for embedded blocks.

    17.0.0release notes

  • Rules now behave consistently for their ignore* secondary options.

    17.0.0release notes

  • The handling of provided position arguments is now consistent and predictable.

    17.0.0release notes

  • Fixed false negatives for :is/where().

    17.0.0release notes

  • Fixed false positives for MathML 4 tags.

    17.0.0release notes

  • CLI help now includes TypeScript config files.

    17.0.0release notes

stylelint 1633 changes

Breaking changes 10

  • CLI flag errors now exit with code 64 instead of 2, reserving 2 for lint problems.

    16.0.0upgrade guiderelease notes

  • The CLI prints problems to stderr instead of stdout; with --fix and --stdin, fixed code goes to stdout and problems to stderr.

    16.0.0upgrade guide

  • The 76 rules deprecated in 15.0.0 were removed.

    16.0.0release notes

  • Support for Node.js versions below 18.12.0 has been removed; use Node.js 18.12.0 or higher.

    16.0.0upgrade guiderelease notes

  • Autofixing always uses postcss-safe-parser, regardless of file extension.

    16.0.0upgrade guiderelease notes

  • Deprecated stylistic rules have been removed; remove them from configuration.

    14.0.0, 16.0.0upgrade guiderelease notes

  • Every formatter is now a Promise function and must be awaited.

    16.0.0upgrade guiderelease notes

  • Every rule is now a Promise function and must be awaited.

    16.0.0upgrade guiderelease notes

  • The function is now async and must be awaited.

    16.0.0upgrade guiderelease notes

  • Internal files now use .mjs and .cjs extensions; plugins requiring internal files must update their paths, though access will be removed in the next major release.

    16.0.0upgrade guide

Deprecations 2

  • The CommonJS Node.js API is deprecated and will be removed in the next major release; using it triggers a deprecation warning.

    16.0.0upgrade guiderelease notes

  • The resolved object's output property is deprecated in favor of report and code and will be removed in the next major version.

    16.0.0upgrade guiderelease notes

New APIs and options 9

Behavior and default changes 2

  • Promise-returning formatter functions are now supported.

    16.0.0release notes

  • The severity secondary option now supports a function.

    16.0.0release notes

Tooling 2

  • A package using node:test is available for testing rules; its coverage support is experimental.

    16.0.0upgrade guide

  • TypeScript definitions for ESM changed.

    16.0.0release notes

Fixes and other changes 8

  • Fixes false positives for @function.

    16.26.1release notes

  • Fixes false positives for attr(), if() and custom functions.

    16.26.1release notes

  • Fixes false positives when URLs require quoting.

    16.26.1release notes

  • Fixes false positives for the latest CSS specifications by integrating CSS syntax patches.

    16.26.1release notes

  • Fixes false positives for ::scroll-button().

    16.26.1release notes

  • Fixes false positives for style query in the if() function.

    16.26.0release notes

  • The CLI now avoids producing different outputs for empty files and empty stdin.

    16.0.0release notes

  • The CLI no longer waits for stdin when there is no input.

    16.0.0release notes

stylelint 1521 changes

Breaking changes 4

Deprecations 2

  • Warnings are now emitted for deprecated rules.

    15.0.0release notes

  • Seventy-six rules enforcing stylistic conventions are deprecated. They still work in this release but emit deprecation warnings and are planned for removal in the next major release.

    15.0.0upgrade guiderelease notes

New APIs and options 6

  • The rule now accepts message arguments.

    15.0.0release notes

  • Adds a rule that flags property-value pairs unknown in CSS specifications, with secondary options for ignoring or extending property and value syntaxes.

    15.0.0upgrade guiderelease notes

  • The rule now provides an autofix.

    15.0.0release notes

  • A new rule is available to allow-list media feature name units.

    15.0.0release notes

  • The rule now accepts ignore: ["custom-elements"].

    15.0.0release notes

  • The rule now accepts an ignoreFunctions option, defaulting to an empty list.

    15.0.0release notes

Tooling 2

Fixes and other changes 7

  • False positives for @scroll-timeline are fixed.

    15.0.0release notes

  • False positives for interpolation and backticks in CSS-in-JS are fixed.

    15.0.0release notes

  • False positives for named timeline ranges are fixed.

    15.0.0release notes

  • The config option now allows basename glob patterns.

    15.0.0release notes

  • False negatives for newer custom syntaxes are fixed.

    15.0.0release notes

  • False positives for the never option are fixed.

    15.0.0release notes

  • The autofix for the simple option is fixed.

    15.0.0release notes

stylelint 1427 changes

Breaking changes 3

Security 1

  • A ReDoS issue with regex in indentation was addressed.

    14.0.0release notes

New APIs and options 10

  • The color-hex-alpha rule has been added.

    14.0.0release notes

  • The custom-property-no-missing-var-function rule has been added.

    14.0.0release notes

  • The configuration object now supports a customSyntax option.

    14.0.0release notes

  • The rule now provides an autofix.

    14.0.0release notes

  • The rule now supports the ignoreFunctions option.

    14.0.0release notes

  • The rule now supports the ignoreAtRules option.

    14.0.0release notes

  • The rule now supports the ignoreProperties option.

    14.0.0release notes

  • The configuration object now supports an overrides property.

    14.0.0release notes

  • The Node.js API now supports a quiet option.

    14.0.0release notes

  • The rules property in the configuration object now supports disableFix as a secondary option.

    14.0.0release notes

Behavior and default changes 1

Tooling 1

Fixes and other changes 11

  • Fixed the “No files matching the pattern” issue when using backslash paths on Windows.

    14.0.0release notes

  • Problem messages are now consistent with other *-quotes rules.

    14.0.0release notes

  • Fixed false positives for the flex property.

    14.0.0release notes

  • Fixed autofix for Less comments.

    14.0.0release notes

  • Fixed false positives for prefers-contrast.

    14.0.0release notes

  • Fixed false positives for dynamic-range and video-dynamic-range.

    14.0.0release notes

  • Fixed a TypeError for spaceless conditions.

    14.0.0release notes

  • Fixed false negatives for grid and grid-template shorthand properties.

    14.0.0release notes

  • Fixed false positives for Less maps.

    14.0.0release notes

  • Fixed false positives for Less parametric mixins.

    14.0.0release notes

  • Fixed false positives for nested property declarations.

    14.0.0release notes

stylelint 1311 changes

Breaking changes 3

  • Types declarations for Flow were removed.

    13.0.0release notes

  • Globs should use only forward-slashes as directory separators; Windows users might need to update their globs.

    13.0.0release notes

  • Node.js 8.x support was removed; Node.js 10 is now required, with support guaranteed on its latest release.

    13.0.0release notes

Behavior and default changes 1

Fixes and other changes 7

  • Fixed an edge case involving overlapping disabled ranges.

    13.0.0release notes

  • Fixed false negatives for multiple spaces.

    13.0.0release notes

  • Fixed a crash when no rules are specified.

    13.0.0release notes

  • Fixed false positives for SVG tags.

    13.0.0release notes

  • Selectors are now consistently checked for standard syntax before being passed to the parser.

    13.0.0release notes

  • Fixed false positives for Sass map keys.

    13.0.0release notes

  • Fixed false positives for shared-line comments.

    13.0.0release notes

stylelint 128 changes

Breaking changes 2

  • Stylelint no longer ignores the bower_components folder by default.

    12.0.0release notes

  • The createRuleTester API was removed.

    12.0.0release notes

Fixes and other changes 6

  • Fixed the incorrect error message shown when parsing files with broken syntax.

    12.0.0release notes

  • Fixed false positives for Sass variables with namespaces.

    12.0.0release notes

  • Fixed false positives for font-weight ranges in @font-face.

    12.0.0release notes

  • Fixed false positives for line-height and fr units.

    12.0.0release notes

  • Fixed false positives for Less variables.

    12.0.0release notes

  • Fixed false negatives for rules with nested rules.

    12.0.0release notes

stylelint 1121 changes

Breaking changes 4

  • These rules now report only one violation per function, selector, or value list.

    11.0.0release notes

  • The value returned for stylelintError is now always a boolean.

    11.0.0release notes

  • The PostCSS plugin no longer ignores .stylelintignore.

    11.0.0release notes

  • Each file now displays a violation at 1:1 instead of throwing an error when rules are unrecognised.

    11.0.0release notes

Deprecations 1

New APIs and options 5

  • The rule gained ignore: ["selectors-within-list"].

    11.0.0release notes

  • The rule gained the ignoreSelectors option.

    11.0.0release notes

  • A CLI flag for reporting invalid scope disables was added.

    11.0.0release notes

  • The selector-pseudo-element-case rule gained autofix support.

    11.0.0release notes

  • The unicode-bom rule was added.

    11.0.0release notes

Behavior and default changes 3

  • The max-empty-lines rule gained autofix support.

    11.0.0release notes

  • The flag now reports needless disables and runs linting.

    11.0.0release notes

  • Selector rules now support all logical combinations, including :matches and :has.

    11.0.0release notes

Fixes and other changes 8

  • The rule no longer crashes for @import statements.

    11.0.0release notes

  • Babel user configuration no longer interferes with the CSS-in-JS parser.

    11.0.0release notes

  • False positives for <style> tags with multiline attributes were fixed.

    11.0.0release notes

  • False positives inside calc functions were fixed.

    11.0.0release notes

  • False positives for multi-line url() were fixed.

    11.0.0release notes

  • False positives for selectors in the same selector list were fixed.

    11.0.0release notes

  • False positives for Less at-variables starting with numbers were fixed.

    11.0.0release notes

  • The rule was fixed for overflowX in CSS-in-JS.

    11.0.0release notes

stylelint 1016 changes

Breaking changes 6

  • Use this flag to preserve the old behavior when a glob matches no files.

    10.0.0release notes

  • Stylelint now throws an error if a glob matches no files.

    10.0.0release notes

  • The jsx syntax option was removed and replaced with css-in-js in v9.10.0.

    10.0.0release notes

  • Node.js 6.x support was removed; Node.js 8.15.1 or greater is now required.

    10.0.0release notes

  • Rules are now applied in the order defined in lib/rules/index.js.

    10.0.0release notes

  • The styled syntax option was removed and replaced with css-in-js in v9.10.0.

    10.0.0release notes

New APIs and options 3

  • Added the at-rule-property-requirelist rule.

    10.0.0release notes

  • Added ignore: ["comments"] to block-no-empty.

    10.0.0release notes

  • Added the disallowInList option to no-duplicate-selectors.

    10.0.0release notes

Fixes and other changes 7

  • Fixed false negatives for CSS-in-JS.

    10.0.0release notes

  • Fixed false negatives in declaration-based rules for CSS-in-JS.

    10.0.0release notes

  • Fixed false positives for prefers-color-scheme.

    10.0.0release notes

  • Fixed false positives for negative numbers.

    10.0.0release notes

  • Fixed false positives for vendor prefixed pseudo-elements.

    10.0.0release notes

  • Fixed false negatives for nested at-rules.

    10.0.0release notes

  • Fixed autofix for single-line comments within maps.

    10.0.0release notes