Socket
Socket
Sign inDemoInstall

stylelint-scss

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-scss - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 1.4.1
- Fixed: mixed import names for `at-else-closing-brace-space-after` and `at-else-empty-line-before` rules.
- Fixed: false positives for nested props rules (`:not()`-like selectors, strings, numbers).
# 1.4.0

@@ -2,0 +7,0 @@

4

dist/rules/index.js

@@ -140,4 +140,4 @@ "use strict";

"at-else-closing-brace-newline-after": _atElseClosingBraceNewlineAfter2.default,
"at-else-closing-brace-space-after": _atElseEmptyLineBefore2.default,
"at-else-empty-line-before": _atElseClosingBraceSpaceAfter2.default,
"at-else-closing-brace-space-after": _atElseClosingBraceSpaceAfter2.default,
"at-else-empty-line-before": _atElseEmptyLineBefore2.default,
"at-function-pattern": _atFunctionPattern2.default,

@@ -144,0 +144,0 @@ "at-if-closing-brace-newline-after": _atIfClosingBraceNewlineAfter2.default,

@@ -15,3 +15,4 @@ "use strict";

mode: "normal",
character: null
character: null,
isCalculationEnabled: true
}];

@@ -63,5 +64,7 @@ var result = {};

// It's a declaration if 1) there is a whitespace after :, or
// 2) the value is a number (with/without a unit),
// 3) the value is a variable
if (propValue.before === "" && !/[0-9.$]/.test(propValue.value)) {
// 2) the value is a number with/without a unit (starts with a number
// or a dot), or
// 3) the value is a variable (starts with $), or
// 4) the value a string, surprisingly
if (propValue.before === "" && !/^[0-9.$'"]/.test(propValue.value)) {
return null;

@@ -68,0 +71,0 @@ }

{
"name": "stylelint-scss",
"description": "A collection of SCSS specific rules for stylelint",
"version": "1.4.0",
"version": "1.4.1",
"author": "Krister Kari",

@@ -6,0 +6,0 @@ "babel": {

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