Socket
Socket
Sign inDemoInstall

stylelint

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint - npm Package Versions

1
24

6.0.2

Diff

Changelog

Source

6.0.2

  • Fixed: CssSyntaxError sets errored on output to true.
jeddy3
published 6.0.1 •

Changelog

Source

6.0.1

  • Fixed: function-name-case now accounts for camelCase function names (e.g. translateX, scaleX etc) when the lower option is used.
davidtheclark
published 6.0.0 •

Changelog

Source

6.0.0

  • Changed: CssSyntaxError is no longer thrown but reported alongside warnings.
  • Added: new look for standard formatter and support for arbitrary severity names.
  • Added: exposed stylelint.utils.cssWordIsVariable().
  • Added: at-rule-name-case rule.
  • Added: function-name-case rule.
  • Added: property-case rule.
  • Added: selector-pseudo-class-case rule.
  • Added: selector-pseudo-element-case rule.
  • Added: unit-case rule.
  • Added: value-keyword-case rule.
  • Added: indentClosingBrace option to indentation.
  • Added: indentInsideParens option to indentation.
  • Added: consecutive-duplicates option for declaration-block-no-duplicate-properties rule.
  • Fixed: block-no-empty no longer delivers false positives for less syntax.
  • Fixed: declaration-block-trailing-semicolon better understands nested at-rules.
  • Fixed: number-zero-length-no-unit now work with q unit and ignores s, ms, kHz, Hz, dpcm, dppx, dpi units
davidtheclark
published 5.4.0 •

Changelog

Source

5.4.0

  • Added: unit-no-unknown rule.
  • Fixed: no-descending-specificity no longer gets confused when the last part of a selector is a compound selector.
  • Fixed: regression causing indentation to complain about Sass maps.
  • Fixed: declaration-block-no-ignored-properties now ignore clear for position: absolute and position: relative and does not ignore float on display: table-*.
davidtheclark
published 5.3.0 •

Changelog

Source

5.3.0

  • Added: (experimental) support for Less syntax.
  • Added: support for SugarSS syntax.
  • Added: exposed stylelint.createRuleTester().
  • Added: declaration-block-no-ignored-properties rule.
  • Added: function-max-empty-lines rule.
  • Added: function-url-data-uris rule.
  • Fixed: block-closing-brace-newline-after accepts single-line comments immediately after the closing brace.
  • Fixed: block-closing-brace-newline-after use of "single space", rather than "newline", in its messages.
  • Fixed: font-weight-notation now ignores initial value.
  • Fixed: function-* rules should all now ignore all Sass maps and lists.
  • Fixed: function-calc-no-unspaced-operator accepts newlines.
  • Fixed: function-comma-space-after, function-comma-space-before, function-parentheses-newline-inside and function-parentheses-space-inside now ignore SCSS maps.
  • Fixed: max-line-length options validation.
  • Fixed: no-unknown-animations now ignores none, initial, inherit, unset values.
  • Fixed: property-value-blacklist and -whitelist no longer error on properties without a corresponding list entry.
  • Fixed: selector-class-pattern now ignores selectors with Sass interpolation.
  • Fixed: selector-id-pattern now ignores selectors with Sass interpolation.
  • Fixed: selector-no-id now ignores keyframe selectors.
  • Fixed: unit-blacklist and unit-whitelist now ignores url functions.
davidtheclark
published 5.2.1 •

Changelog

Source

5.2.1

  • Fixed: function-calc-no-unspaced-operator now better ignores non-calc functions.
  • Fixed: no-descending-specificity no longer delivers false positives after second run in Atom linter.
  • Fixed: stylelint-disable-rule imported correctly.
davidtheclark
published 5.2.0 •

Changelog

Source

5.2.0

  • Added: at-rule-semicolon-newline-after rule.
  • Added: no-indistinguishable-colors rule.
  • Added: stylelint-disable-reason rule.
  • Fixed: declaration-bang-space-* understands arbitrary bang declarations (e.g. !default).
  • Fixed: font-weight-notation now ignore inherit value.
  • Fixed: indentation treats @nest at-rules like regular rules with selectors.
  • Fixed: no-duplicate-selectors contextualizes selectors by all at-rules, not just media queries.
  • Fixed: no-duplicate-selectors no longer delivers false positives after second run in Atom linter.
  • Fixed: no-duplicate-selectors no longer delivers false positives with descendant combinators.
  • Fixed: number-no-trailing-zeros no longer delivers false positives in url() arguments.
  • Fixed: root-no-standard-properties no longer delivers false positives inside the :not() pseudo-selector.
  • Fixed: selector-list-comma-* rules no longer deliver false positives inside functional notation.
davidtheclark
published 5.1.0 •

Changelog

Source

5.1.0

  • Added: selector-type-case rule.
  • Fixed: no more subtle configuration bug when using extends and plugins together in tangled ways.
jeddy3
published 5.0.1 •

Changelog

Source

5.0.1

  • Fixed: string-no-newline no longer stumbles when there are comment-starting characters inside strings.
davidtheclark
published 5.0.0 •

Changelog

Source

5.0.0

  • Removed: no-indistinguishable-colors because its dependencies were unusable in Atom. (To be re-evaluated and re-added later.)
  • Removed: "warn": true secondary option. Use "severity": "warning", instead.
  • Removed: color-no-named rule. Use the new color-named rule, with the "never" option instead.
  • Removed: declaration-block-no-single-line rule. Use the new block-no-single-line rule instead.
  • Removed: rule-no-duplicate-properties rule. Use the new declaration-block-no-duplicate-properties rule instead.
  • Removed: rule-no-shorthand-property-overrides rule. Use the new declaration-block-no-shorthand-property-overrides rule instead.
  • Removed: rule-properties-order rule. Use the new declaration-block-properties-order rule instead.
  • Removed: rule-trailing-semicolon rule. Use the new declaration-block-trailing-semicolon rule instead.
  • Removed true option for emptyLineBefore when using property groups in rule-properties-order. Use the new "always" or "never" option instead.
  • Removed: "always" option for font-weight-notation. Use the new always-where-possible option instead.
  • Added: support for overlapping stylelint-disable commands.
  • Fixed: max-nesting-depth does not warn about blockless at-rules.
  • Fixed: function-comma-newline-after and related rules consider input to be multi-line (applying to "always-multi-line", etc.) when the newlines are at the beginning or end of the input.
  • Fixed: no-indistinguishable-colors no longer errors on color functions containing spaces e.g. rgb(0, 0, 0) -- but also removed the rule (see above).
  • Fixed: declaration-block-properties-order no longer fails when an unspecified property comes before or after a specified property in a group with emptyLineBefore: true.
  • Fixed: indentation no longer has false positives when there are empty lines within multi-line values.
  • Fixed: declaration-colon-*-after no longer fail to do their job when you want a space or newline after the colon and instead there is no space at all.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc