New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stylelint

Package Overview
Dependencies
Maintainers
0
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint - npm Package Versions

1
25

7.3.1

Diff

Changelog

Source

7.3.1

  • Fixed: regression in 7.3.0 which caused a "Cannot read property 'length' of undefined" error on a certain selector.
davidtheclark
published 7.3.0 •

Changelog

Source

7.3.0

  • Added: processors can accept options objects.
  • Added: ignore: ["inside-function"] option to color-named.
  • Fixed: --ignore-path and --report-needless-disables no longer fails when used together.
  • Fixed: block-closing-brace-newline-after and block-closing-brace-space-after now allow a trailing semicolon after the closing brace of a block.
  • Fixed: block-no-single-line now ignores empty blocks.
  • Fixed: declaration-block-no-ignored-properties now uses the value of the last occurrence of a triggering property.
  • Fixed: indentation now correctly handles _ hacks on property names.
  • Fixed: property-no-unknown now ignores SCSS nested properties.
jeddy3
published 7.2.0 •

Changelog

Source

7.2.0

  • Added: --report-needless-disables and reportNeedlessDisables option.
  • Added: --ignore-disables and ignoreDisables option.
  • Added: --config-basedir option to CLI.
  • Added: declaration-block-no-redundant-longhand-properties rule.
  • Added: function-url-scheme-whitelist rule.
  • Added: media-feature-name-no-unknown rule.
  • Added: selector-descendant-combinator-no-non-space rule.
  • Added: value-list-max-empty-lines rule.
  • Added: ignoreProperties option to color-named.
  • Added: ignore: ["consecutive-duplicates-with-different-values"] option to declaration-block-no-duplicate-properties.
  • Added: ignore: ["comments"] option to max-line-length.
  • Added: ignoreAtRules option to max-nesting-depth.
  • Added: ignoreProperties option to unit-blacklist and unit-whitelist
  • Fixed: no longer parsing ignored files before ignoring them.
  • Fixed: configFile and configBasedir can now be used together.
  • Fixed: max-line-length now correctly handles Windows line endings.
  • Fixed: no-descending-specificity treats selectors with pseudo-elements as distinct from their counterparts without pseudo-classes, because they actually target different elements.
  • Fixed: no-unknown-animations and unit-blacklist now handle numbers without leading zeros.
  • Fixed: root-no-standard-properties now handles custom property sets.
  • Fixed: selector-no-type ignore: ["descendant"] option now correctly handles descendants within a selector list.
  • Fixed: selector-pseudo-class-no-unknown now understands the Shadow DOM selectors of host and host-context.
  • Fixed: selector-pseudo-element-no-unknown now understands the Shadow DOM selector of slotted.
jeddy3
published 7.1.0 •

Changelog

Source

7.1.0

  • Added: block-closing-brace-empty-line-before rule.
  • Added: comment-no-empty rule.
  • Added: custom-property-empty-line-before rule.
  • Added: declaration-empty-line-before rule.
  • Added: media-feature-name-case rule.
  • Added: selector-nested-pattern rule.
  • Added: selector-pseudo-class-blacklist rule.
  • Added: selector-pseudo-class-whitelist rule.
  • Added: regex support to the ignore* secondary options of the *-no-unknown rules.
  • Added: ignore: ["blockless-after-same-name-blockless"] option to at-rule-empty-line-before.
  • Added: except: ["blockless-after-same-name-blockless"] option to at-rule-empty-line-before.
  • Added: ignore: ["empty-lines"] option to no-eol-whitespace.
  • Added: ignoreTypes option to selector-no-type to whitelist allowed types for selectors.
  • Fixed: color-named now ignores declarations that accept custom idents.
  • Fixed: font-family-name-quotes correctly handles numerical font weights for the font shorthand property.
  • Fixed: indentation now correctly handles Windows line endings within parentheticals.
  • Fixed: media-feature-no-missing-punctuation now ignores media features containing complex values e.g. (min-width: ($var - 20px)) and (min-width: calc(100% - 20px)).
  • Fixed: no-descending-specificity message to correctly show which selector should come first.
  • Fixed: selector-combinator-space-after and selector-combinator-space-before now ignore operators within parenthetical non-standard constructs.
jeddy3
published 7.0.3 •

Changelog

Source

7.0.3

  • Fixed: bug causing rules in extended configs to be merged with, rather than replaced by, the extending config.
  • Fixed: selector-class-pattern now ignores fractional keyframes selectors.
  • Fixed: selector-max-specificity now ignores selectors containing the matches() pseudo-class, and warns if the underlying specificity module cannot parse the selector.
  • Fixed: selector-no-type with secondary option ignore: ["descendant"] will now resolve nested selectors.
jeddy3
published 7.0.2 •

Changelog

Source

7.0.2

  • Fixed: at-rule-blacklist, at-rule-whitelist, comment-word-blacklist, selector-attribute-operator-blacklist, selector-attribute-operator-whitelist now accept array as first option.
  • Fixed: unit-* rules now ignore CSS hacks.
jeddy3
published 7.0.1 •

Changelog

Source

7.0.1

  • Fixed: missing known-css-properties dependency.
jeddy3
published 7.0.0 •

Changelog

Source

7.0.0

  • Removed: --extract and extractStyleTagsFromHtml options. Instead, build and use processors.
  • Removed: support for plugin rule names that aren't namespaced, i.e. only your-namespace/your-rule-name rule names are supported. (If your plugin provides only a single rule or you can't think of a good namespace, you can simply use plugin/my-rule.)
  • Removed: --verbose CLI flag. Use --formatter verbose instead.
  • Removed: NodeJS 0.12.x support. 4.2.1 LTS or greater is now required.
  • Removed: media-query-parentheses-space-inside rule. Use the new media-feature-parentheses-space-inside rule instead.
  • Removed: no-missing-eof-newline rule. Use the new rule no-missing-end-of-source-newline instead.
  • Removed: number-zero-length-no-unit rule. Use the length-zero-no-unit rule instead.
  • Removed: property-unit-blacklist rule. Use the declaration-property-unit-blacklist rule instead.
  • Removed: property-unit-whitelist rule. Use the declaration-property-unit-whitelist rule instead.
  • Removed: property-value-blacklist rule. Use the declaration-property-value-blacklist rule instead.
  • Removed: property-value-whitelist rule. Use the declaration-property-value-whitelist rule instead.
  • Removed: "emptyLineBefore" option for declaration-block-properties-order. If you use this option, please consider creating a plugin for the community.
  • Removed: "single-where-required", "single-where-recommended", "single-unless-keyword", "double-where-required", "double-where-recommended" and "double-unless-keyword" options for font-family-name-quotes. Instead, use the "always-unless-keyword", always-where-recommended or always-where-required options together with the string-quotes rule.
  • Removed: "single", "double" and "none" options for function-url-quotes. Instead, use the "always" or "never" options together with the string-quotes rule.
  • Removed: "hierarchicalSelectors" option for indentation. If you use this option, please consider creating a plugin for the community.
  • Removed: stylelint.utils.cssWordIsVariable().
  • Removed: stylelint.utils.styleSearch(). Use the external style-search module instead.
  • Changed: invalid configuration sets result's stylelintError to true, which in turn causes CLI to exit with a non-zero code.
  • Changed: non-standard syntaxes are automatically inferred from file extensions .scss, .less, and .sss.
  • Changed: .stylelintignore now uses .gitignore syntax, and Stylelint looks for it in process.cwd().
  • Changed: files matching ignore patterns no longer receive an "info"-severity message, which was always printed by the string formatter. Instead, the file's Stylelint result object receives an ignored: true property, which various formatters can use as needed. The standard string formatter prints nothing for ignored files; but when the verbose formatter is used, ignored files are included in the filelist.
  • Changed: plugin arrays in extended configs are now concatenated with the main config's plugin array, instead of being overwritten by it. So plugins from the main config and from extended configs will all be loaded.
  • Changed: -v flag to display version number.
  • Changed: comment-word-blacklist no longer ignores words within copyright comments.
  • Changed: comment-word-blacklist will now identify strings within comments, rather than just at the beginning of, when the string option is used.
  • Changed: declaration-block-no-ignored-properties now detects use of min-width and max-width with inline, table-row, table-row-group, table-column and table-column-group elements.
  • Changed: declaration-block-no-ignored-properties now detects use of overflow, overflow-x and overflow-y with inline elements.
  • Changed: declaration-block-no-ignored-properties now ignores the combination of float and display: inline-block | inline.
  • Changed: font-family-name-quotes now checks the font property in addition to the font-family property.
  • Changed: font-family-name-quotes treats -apple-* and BlinkMacSystemFont system fonts as keywords that should never be wrapped in quotes.
  • Changed: indentation now checks inside of parentheses by default. If you use the indentInsideParens: "once" secondary option, simply remove it from your config. If you do not want to check inside of parentheses, use the new ignore: ["inside-parens"] secondary option. The indentInsideParens: "twice" and indentInsideParens: "once-at-root-twice-in-block" secondary options are unchanged.
  • Changed: keyframe-declaration-no-important now checks vendor prefixed @keyframes at-rules.
  • Changed: selector-attribute-quotes now checks attribute selectors with whitespace around the operator or inside the brackets.
  • Changed: time-no-imperceptible now checks vendor prefixed properties.
  • Changed: unit-* rules now check @media values too.
  • Added: plugins can allow primary option arrays by setting ruleFunction.primaryOptionArray = true.
  • Added: processors.
  • Added: media-feature-parentheses-space-inside rule.
  • Added: no-missing-end-of-source-newline rule.
  • Added: property-no-unknown rule.
  • Fixed: Better handling quotes in selector attribute with multiple attributes.
  • Fixed: no-unknown-animations now classifies vendor prefixed @keyframes at-rules as known.
jeddy3
published 6.9.0 •

Changelog

Source

6.9.0

  • Added: defaultSeverity configuration option.
  • Added: invoking the CLI with no arguments and no stdin (i.e. just stylelint) is equivalent to stylelint --help.
  • Added: function-url-no-scheme-relative rule.
  • Added: selector-attribute-quotes rule.
  • Fixed: the CLI now uses process.exitCode with stdOut to allow the process to exit naturally and avoid truncating output.
  • Fixed: function-calc-no-unspaced-operator correctly interprets negative fractional numbers without leading zeros and those wrapped in parentheses.
  • Fixed: no-extra-semicolons now ignores semicolons after Less mixins.
  • Fixed: number-max-precision now ignores uppercase and mixed case @import at-rules.
  • Fixed: selector-max-specificity no longer crashes on selectors containing :not() pseudo-classes.
  • Fixed: time-no-imperceptible correctly handles negative time.
jeddy3
published 6.8.0 •

Changelog

Source

6.8.0

  • Deprecated: -e and --extract CLI flags, and the extractStyleTagsFromHtml Node.js API option. If you use these flags or option, please consider creating a processor for the community.
  • Added: at-rule-no-unknown rule.
  • Added: no-empty-source rule.
  • Added: except: ["after-single-line-comment"] option for rule-non-nested-empty-line-before.
  • Added: ignoreProperties: [] option for declaration-block-no-duplicate-properties.
  • Fixed: accuracy of warning positions for empty blocks when using SugarSS parser.
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