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.3.0 to 1.3.1

4

CHANGELOG.md

@@ -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 @@

9

dist/utils/findCommentsInRaws.js

@@ -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 @@

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