Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-scss

Package Overview
Dependencies
Maintainers
2
Versions
112
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.5.0 to 1.5.1

6

CHANGELOG.md

@@ -0,2 +1,8 @@

# 1.5.1
- Fixed: `at-rule-no-unknown` add missing export to `ruleName`.
- Fixed: `at-rule-no-unknown` add options validation.
# 1.5.0
- Added: `at-rule-no-unknown` rule.

@@ -3,0 +9,0 @@

1

dist/rules/at-else-empty-line-before/index.js

@@ -19,3 +19,2 @@ "use strict";

root.walkAtRules(function (atrule) {
if (atrule.name !== "else") {

@@ -22,0 +21,0 @@ return;

@@ -6,6 +6,19 @@ "use strict";

});
exports.messages = undefined;
exports.messages = exports.ruleName = undefined;
exports.default = function (primaryOption, secondaryOptions) {
return function (root, result) {
var validOptions = _stylelint.utils.validateOptions(result, ruleName, {
actual: primaryOption
}, {
actual: secondaryOptions,
possible: {
ignoreAtRules: [_lodash.isRegExp, _lodash.isString]
},
optional: true
});
if (!validOptions) {
return;
}
var optionsAtRules = secondaryOptions && secondaryOptions.ignoreAtRules;

@@ -37,2 +50,4 @@ var ignoreAtRules = sassAtRules.concat(optionsAtRules || []);

var _lodash = require("lodash");
var _stylelint = require("stylelint");

@@ -46,3 +61,3 @@

var ruleName = (0, _utils.namespace)(ruleToCheckAgainst);
var ruleName = exports.ruleName = (0, _utils.namespace)(ruleToCheckAgainst);

@@ -49,0 +64,0 @@ var messages = exports.messages = _stylelint.utils.ruleMessages(ruleName, {

@@ -55,3 +55,2 @@ "use strict";

root.walkDecls(function (decl) {
if (decl.prop === undefined || decl.prop[0] !== "$") {

@@ -58,0 +57,0 @@ return;

@@ -26,3 +26,2 @@ "use strict";

root.walkDecls(function (decl) {
if (!isDollarVar(decl)) {

@@ -29,0 +28,0 @@ return;

@@ -26,3 +26,2 @@ "use strict";

root.walkComments(function (comment) {
// Only process // comments

@@ -29,0 +28,0 @@ if (!comment.raws.inline && !comment.inline) {

@@ -117,3 +117,2 @@ "use strict";

/**

@@ -171,3 +170,2 @@ * Takes a string, finds all occurencies of Sass interpolaion in it, then

if (item.type === "atrule") {
// Media queries

@@ -174,0 +172,0 @@ if (item.name === "media" || item.name === "import") {

@@ -8,3 +8,2 @@ "use strict";

exports.default = function (rule) {
// Get full selector

@@ -11,0 +10,0 @@ var selector = _lodash2.default.get(rule, "raws.selector.raw", rule.selector);

@@ -8,3 +8,2 @@ "use strict";

exports.default = function (selector) {
// SCSS or Less interpolation

@@ -11,0 +10,0 @@ if (/#{.+?}|@{.+?}|\$\(.+?\)/.test(selector)) {

@@ -8,3 +8,2 @@ "use strict";

exports.default = function (property) {
// SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))

@@ -11,0 +10,0 @@ if (property[0] === "$") {

@@ -34,3 +34,2 @@ "use strict";

var mathOperators = ["+", "/", "-", "*", "%"];

@@ -37,0 +36,0 @@ // A stack of modes activated for the current char: string, interpolation

@@ -8,3 +8,2 @@ "use strict";

exports.default = function (targetWhitespace, expectation, messages) {
// Keep track of active arguments in order to avoid passing

@@ -11,0 +10,0 @@ // too much stuff around, making signatures long and confusing.

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

@@ -27,8 +27,8 @@ "babel": {

"coveralls": "^2.11.14",
"eslint": "^2.3.0",
"eslint-config-stylelint": "^1.0.0",
"eslint": "^4.2.0",
"eslint-config-stylelint": "^6.0.0",
"npmpub": "^3.0.3",
"nyc": "^8.3.1",
"postcss": "^5.0.21",
"postcss-scss": "^0.1.7",
"nyc": "^11.0.3",
"postcss": "^6.0.6",
"postcss-scss": "^1.0.2",
"replace": "^0.3.0",

@@ -39,3 +39,3 @@ "request": "^2.72.0",

"stylelint-test-rule-tape": "^0.2.0",
"table": "3.7.9",
"table": "^4.0.1",
"tap-spec": "^4.1.1",

@@ -49,2 +49,5 @@ "tape": "^4.6.0"

"extends": "stylelint",
"parserOptions": {
"sourceType": "module"
},
"rules": {

@@ -51,0 +54,0 @@ "arrow-spacing": 2,

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