stylelint-scss
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,5 @@ | ||
# 1.3.1 | ||
- Fixed: `findCommentsInRaws` for multiline CSS comments and text for //-comments (`double-slash-comment-` rules and `operator-no-unspaced` rule). | ||
# 1.3.0 | ||
@@ -2,0 +6,0 @@ |
@@ -97,3 +97,3 @@ "use strict"; | ||
// slash in // and in */, so the / is not from a marker | ||
if (mode === "comment" || mode === "string") { | ||
if (mode === "comment") { | ||
break; | ||
@@ -139,4 +139,3 @@ } | ||
var commentRaw = rawString.substring(comment.start, comment.end + 1); | ||
var matches = /^(\/\*+[!#]{0,1})(\s*)(.*?)(\s*?)(\*+\/)$/.exec(commentRaw); | ||
var matches = /^(\/\*+[!#]{0,1})(\s*)([\s\S]*?)(\s*?)(\*+\/)$/.exec(commentRaw); | ||
modesEntered.pop(); | ||
@@ -164,5 +163,5 @@ comment.raws = { | ||
if (mode === "comment" && modesEntered[lastModeIndex].character === "//") { | ||
comment.end = i - 1; | ||
comment.end = character === "\n" ? i - 1 : i; | ||
var _commentRaw = rawString.substring(comment.start, comment.end); | ||
var _commentRaw = rawString.substring(comment.start, comment.end + 1); | ||
var _matches = /^(\/+)(\s*)(.*?)(\s*?)$/.exec(_commentRaw); | ||
@@ -169,0 +168,0 @@ |
{ | ||
"name": "stylelint-scss", | ||
"description": "A collection of SCSS specific rules for stylelint", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Krister Kari", | ||
@@ -6,0 +6,0 @@ "babel": { |
@@ -6,3 +6,3 @@ # stylelint-scss | ||
[![Build status](https://ci.appveyor.com/api/projects/status/xa12kju6qmvmqs1n/branch/master?svg=true)](https://ci.appveyor.com/project/kristerkari/stylelint-scss/branch/master) | ||
[![v1.2.0 progress](http://progressed.io/bar/100?title=v1.2.0)](https://github.com/kristerkari/stylelint-scss/milestones/1.2.0) | ||
[![v1.3.0 progress](http://progressed.io/bar/100?title=v1.3.0)](https://github.com/kristerkari/stylelint-scss/milestones/1.3.0) | ||
@@ -9,0 +9,0 @@ A collection of SCSS specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of a plugin). |
@@ -9,3 +9,3 @@ # dollar-variable-colon-newline-after | ||
0 0 2px 1px rgba(30, 140, 190, 0.8); | ||
} /* ↑ */ | ||
/* ↑ */ | ||
/** ↑ | ||
@@ -12,0 +12,0 @@ * The newline after this colon */ |
@@ -86,3 +86,3 @@ /** | ||
// slash in // and in */, so the / is not from a marker | ||
if (mode === "comment" || mode === "string") { break } | ||
if (mode === "comment") { break } | ||
if (nextChar === "*") { | ||
@@ -123,4 +123,3 @@ modesEntered.push({ | ||
const commentRaw = rawString.substring(comment.start, comment.end + 1) | ||
const matches = /^(\/\*+[!#]{0,1})(\s*)(.*?)(\s*?)(\*+\/)$/.exec(commentRaw) | ||
const matches = /^(\/\*+[!#]{0,1})(\s*)([\s\S]*?)(\s*?)(\*+\/)$/.exec(commentRaw) | ||
modesEntered.pop() | ||
@@ -147,5 +146,5 @@ comment.raws = { | ||
if (mode === "comment" && modesEntered[lastModeIndex].character === "//") { | ||
comment.end = i - 1 | ||
comment.end = character === "\n" ? i - 1 : i | ||
const commentRaw = rawString.substring(comment.start, comment.end) | ||
const commentRaw = rawString.substring(comment.start, comment.end + 1) | ||
const matches = /^(\/+)(\s*)(.*?)(\s*?)$/.exec(commentRaw) | ||
@@ -152,0 +151,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
251106
0