Socket
Socket
Sign inDemoInstall

stylelint

Package Overview
Dependencies
Maintainers
3
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint - npm Package Versions

1
24

4.5.1

Diff

Changelog

Source

4.5.1

  • Fixed: no-unsupported-browser-features options now optional.
  • Fixed: no-duplicate-selectors now ignores keyframe selectors.
jeddy3
published 4.5.0 •

Changelog

Source

4.5.0

  • Deprecated: "warn": true secondary option. Use "severity": "warning", instead.
  • Deprecated: color-no-named rule. Use the new color-named rule, with the "never" option instead.
  • Deprecated: declaration-block-no-single-line rule. Use the new block-no-single-line rule instead.
  • Deprecated: rule-no-duplicate-properties rule. Use the new declaration-block-no-duplicate-properties rule instead.
  • Deprecated: rule-no-shorthand-property-overrides rule. Use the new declaration-block-no-shorthand-property-overrides rule instead.
  • Deprecated: rule-properties-order rule. Use the new declaration-block-properties-order rule instead.
  • Deprecated: rule-trailing-semicolon rule. Use the new declaration-block-trailing-semicolon rule instead.
  • Deprecated true option for emptyLineBefore when using property groups in rule-properties-order. Use the new "always" or "never" option instead.
  • Deprecated: "always" option for font-weight-notation. Use the new always-where-possible option instead.
  • Added: universal severity secondary option as a replacement for "warn": true to alter a rule's severity.
  • Added: block-no-single-line rule.
  • Added: color-named rule.
  • Added: declaration-block-no-duplicate-properties rule.
  • Added: declaration-block-no-shorthand-property-overrides rule.
  • Added: declaration-block-properties-order rule.
  • Added: declaration-block-trailing-semicolon rule.
  • Added: max-nesting-depth rule.
  • Added: no-browser-hacks rule.
  • Added: no-descending-specificity rule.
  • Added: no-indistinguishable-colors rule.
  • Added: no-unsupported-browser-features rule.
  • Added: selector-max-specificity rule.
  • Added: string-no-newline rule.
  • Added: "always" and "never" option to rule-properties-order emptyLineBefore when using property groups
  • Added: named-where-possible option to font-weight-notation.
  • Added: unspecified: "bottomAlphabetical" option to the rule-properties-order rule.
  • Added: ignoreAtRules: [] option to the block-opening-brace-space-before and block-closing-brace-newline-after rules.
  • Added: support for using the nesting selector (&) as a prefix in selector-no-type.
  • Added: stylelint-disable-line feature.
  • Added: withinComments, withinStrings, and checkStrings options to styleSearch, and insideString property to the styleSearch match object.
  • Added: resolveNestedSelectors option to the selector-class-pattern rule.
  • Fixed: informative errors are thrown when stylelint-disable is misused.
  • Fixed: selector-no-vendor-prefix no longer delivers two warnings on vendor-prefixed pseudo-elements with two colons, e.g. ::-moz-placeholder.
  • Fixed: no-duplicate-selectors rule now resolves nested selectors.
  • Fixed: font-weight-notation does not throw false warnings when normal is used in certain ways.
  • Fixed: selector-no-* and selector-*-pattern rules now ignore custom property sets.
  • Fixed: nested selector handling for no-duplicate-selectors.
  • Fixed: selector-no-id does not warn about Sass interpolation inside an :nth-child() argument.
  • Fixed: handling of mixed line endings in rule-nested-empty-line-before, rule-non-nested-empty-line-before, comment-empty-line-before and at-rule-empty-line-before.
  • Fixed: number-leading-zero, function-comma-space-*, and declaration-colon-* do not throw false positives in url() arguments.
jeddy3
published 4.4.0 •

Changelog

Source

4.4.0

  • Added: ignore: "relative" option for font-weight-notation.
  • Fixed: declaration-colon-space/newline-before/after rules now ignore scss maps.
  • Fixed: selector-list-comma-newline-after allows // comments after the comma.
jeddy3
published 4.3.6 •

Changelog

Source

4.3.6

  • Fixed: removed console.log()s in property-unit-whitelist.
jeddy3
published 4.3.5 •

Changelog

Source

4.3.5

  • Fixed: removed console.log()s in rule-properties-order.
davidtheclark
published 4.3.4 •

Changelog

Source

4.3.4

  • Fixed: option normalization for rules with primary options that are arrays of objects, like rule-properties-order.
  • Fixed: accuracy of warning positions are // comments when using SCSS parser.
  • Fixed: no-unknown-animations ignores variables.
  • Fixed: no-unknown-animations does not erroneously flag functions like steps() and cubic-bezier().
  • Fixed: clarified error message in time-no-imperceptible.
  • Fixed: font-family-name-quotes and font-weight-notation ignore variables.
  • Fixed: media-feature-no-missing-punctuation handles space-padded media features.
  • Fixed: regression causing CLI --config relatives paths that don't start with ./ to be rejected.
davidtheclark
published 4.3.3 •

Changelog

Source

4.3.3

  • Fixed: again removed stylelint.utils.ruleTester because its dependencies broke things.
jeddy3
published 4.3.2 •

Changelog

Source

4.3.2

  • Fixed: move tape to dependencies to support testUtils.
jeddy3
published 4.3.1 •

Changelog

Source

4.3.1

  • Fixed: include testUtils in npm package whitelist.
jeddy3
published 4.3.0 •

Changelog

Source

4.3.0

  • Added: font-family-name-quotes rule.
  • Added: font-weight-notation rule.
  • Added: media-feature-no-missing-punctuation rule.
  • Added: no-duplicate-selectors rule.
  • Added: no-invalid-double-slash-comments rule.
  • Added: no-unknown-animations rule.
  • Added: property-value-blacklist rule.
  • Added: property-value-whitelist rule.
  • Added: time-no-imperceptible rule.
  • Added: ignore: "descendant" and ignore: "compounded" options for selector-no-type.
  • Added: support for regular expression property identification in property-blacklist, property-unit-blacklist, property-unit-whitelist, property-value-blacklist, and property-whitelist.
  • Added: better handling of vendor prefixes in property-unit-blacklist and property-unit-whitelist, e.g. if you enter animation it now also checks -webkit-animation.
  • Added: support for using names of modules for the CLI's --config argument, not just paths.
  • Added: codeFilename option to Node.js API.
  • Added: exposed rules at stylelint.rules to make Stylelint even more extensible.
  • Added: brought stylelint-rule-tester into this repo, and exposed it at stylelint.utils.ruleTester.
  • Fixed: bug in rule-properties-order empty line detection when the two newlines were separated by some other whitespace.
  • Fixed: option parsing bug that caused problems when using the "alphabetical" primary option with rule-properties-order.
  • Fixed: regard an empty string as a valid CSS code.
  • Fixed: ignoreFiles handling of absolute paths.
  • Fixed: ignoreFiles uses the configBasedir option to interpret relative paths.
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