Skip to content

stylelint 8.1.0

  • Added: Allow specifying codeFilename to createStylelintResult for raw code linting standalone API (#2450).
  • Added: ignorePattern option (--ignore-pattern in CLI), to allow patterns of files to ignored (#2834).
  • Added: More rules now support experimental autofixing. Use --fix CLI parameter or fix: true Node API options property. Newly supported rules:
    • color-hex-length (#2781).
    • no-missing-end-of-source-newline (#2772).
  • Fixed: *-empty-line-before false positives shared-line comments and "first-nested" option (#2827).
  • Fixed: color-hex-length false positives for id references in url functions (#2806).
  • Fixed: indentation false positives for Less parametric mixins with rule block/snippet (#2744).
  • Fixed: no-empty-source compatability with postcss-html custom syntax (#2798).
  • Fixed: no-extra-semicolons false negatives where instances were not detected when followed by multiple comments (#2678).
  • Fixed: selector-max-specificity cannot parse selector violation for Less mixins (#2677).