Socket
Socket
Sign inDemoInstall

stylelint-scss

Package Overview
Dependencies
Maintainers
2
Versions
109
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.2.1 to 1.3.0

dist/rules/at-mixin-argumentless-call-parentheses/index.js

16

CHANGELOG.md

@@ -0,1 +1,17 @@

# 1.3.0
- Added: `at-mixin-argumentless-call-parentheses` rule (with "always"/"never" behavior as a replacement for `at-mixin-no-argumentless-call-parentheses`).
- Added: `dollar-variable-colon-newline-after` rule.
- Added: `dollar-variable-colon-space-after` rule.
- Added: `dollar-variable-colon-space-before` rule.
- Added: `double-slash-comment-empty-line-before` rule.
- Added: `double-slash-comment-inline` rule.
- Added: `double-slash-comment-whitespace-inside` rule.
- Added: `operator-no-newline-after` rule.
- Added: `operator-no-newline-before` rule.
- Added: `operator-no-unspaced` rule.
- Deprecated: `at-mixin-no-argumentless-call-parentheses`.
- Fixed: `partial-no-import` failing when linting a code string (not in an actual file, e.g. via stylelilnt Node API).
- Updated stylelint dependency to version 7.
# 1.2.1

@@ -2,0 +18,0 @@

@@ -31,2 +31,6 @@ "use strict";

var _atMixinArgumentlessCallParentheses = require("./at-mixin-argumentless-call-parentheses");
var _atMixinArgumentlessCallParentheses2 = _interopRequireDefault(_atMixinArgumentlessCallParentheses);
var _atMixinNoArgumentlessCallParentheses = require("./at-mixin-no-argumentless-call-parentheses");

@@ -40,2 +44,14 @@

var _dollarVariableColonNewlineAfter = require("./dollar-variable-colon-newline-after");
var _dollarVariableColonNewlineAfter2 = _interopRequireDefault(_dollarVariableColonNewlineAfter);
var _dollarVariableColonSpaceAfter = require("./dollar-variable-colon-space-after");
var _dollarVariableColonSpaceAfter2 = _interopRequireDefault(_dollarVariableColonSpaceAfter);
var _dollarVariableColonSpaceBefore = require("./dollar-variable-colon-space-before");
var _dollarVariableColonSpaceBefore2 = _interopRequireDefault(_dollarVariableColonSpaceBefore);
var _dollarVariableNoMissingInterpolation = require("./dollar-variable-no-missing-interpolation");

@@ -49,2 +65,14 @@

var _doubleSlashCommentEmptyLineBefore = require("./double-slash-comment-empty-line-before");
var _doubleSlashCommentEmptyLineBefore2 = _interopRequireDefault(_doubleSlashCommentEmptyLineBefore);
var _doubleSlashCommentInline = require("./double-slash-comment-inline");
var _doubleSlashCommentInline2 = _interopRequireDefault(_doubleSlashCommentInline);
var _doubleSlashCommentWhitespaceInside = require("./double-slash-comment-whitespace-inside");
var _doubleSlashCommentWhitespaceInside2 = _interopRequireDefault(_doubleSlashCommentWhitespaceInside);
var _mediaFeatureValueDollarVariable = require("./media-feature-value-dollar-variable");

@@ -54,2 +82,14 @@

var _operatorNoNewlineAfter = require("./operator-no-newline-after");
var _operatorNoNewlineAfter2 = _interopRequireDefault(_operatorNoNewlineAfter);
var _operatorNoNewlineBefore = require("./operator-no-newline-before");
var _operatorNoNewlineBefore2 = _interopRequireDefault(_operatorNoNewlineBefore);
var _operatorNoUnspaced = require("./operator-no-unspaced");
var _operatorNoUnspaced2 = _interopRequireDefault(_operatorNoUnspaced);
var _partialNoImport = require("./partial-no-import");

@@ -76,7 +116,17 @@

"at-import-partial-extension-whitelist": _atImportPartialExtensionWhitelist2.default,
"at-mixin-argumentless-call-parentheses": _atMixinArgumentlessCallParentheses2.default,
"at-mixin-no-argumentless-call-parentheses": _atMixinNoArgumentlessCallParentheses2.default,
"at-mixin-pattern": _atMixinPattern2.default,
"dollar-variable-colon-newline-after": _dollarVariableColonNewlineAfter2.default,
"dollar-variable-colon-space-after": _dollarVariableColonSpaceAfter2.default,
"dollar-variable-colon-space-before": _dollarVariableColonSpaceBefore2.default,
"dollar-variable-no-missing-interpolation": _dollarVariableNoMissingInterpolation2.default,
"dollar-variable-pattern": _dollarVariablePattern2.default,
"double-slash-comment-empty-line-before": _doubleSlashCommentEmptyLineBefore2.default,
"double-slash-comment-inline": _doubleSlashCommentInline2.default,
"double-slash-comment-whitespace-inside": _doubleSlashCommentWhitespaceInside2.default,
"media-feature-value-dollar-variable": _mediaFeatureValueDollarVariable2.default,
"operator-no-newline-after": _operatorNoNewlineAfter2.default,
"operator-no-newline-before": _operatorNoNewlineBefore2.default,
"operator-no-unspaced": _operatorNoUnspaced2.default,
"percent-placeholder-pattern": _percentPlaceholderPattern2.default,

@@ -83,0 +133,0 @@ "partial-no-import": _partialNoImport2.default,

@@ -17,2 +17,7 @@ "use strict";

if (root.source.input.file === undefined || !root.source.input.file) {
result.warn("The 'partial-no-import' rule won't work if linting in a code string without an actual file.");
return;
}
var fileName = _path2.default.basename(root.source.input.file);

@@ -19,0 +24,0 @@ var extName = _path2.default.extname(root.source.input.file);

0

dist/utils/hasInterpolatingAmpersand.js

@@ -0,0 +0,0 @@ "use strict";

@@ -7,2 +7,38 @@ "use strict";

var _atRuleParamIndex = require("./atRuleParamIndex");
Object.defineProperty(exports, "atRuleParamIndex", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_atRuleParamIndex).default;
}
});
var _configurationError = require("./configurationError");
Object.defineProperty(exports, "configurationError", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_configurationError).default;
}
});
var _declarationValueIndex = require("./declarationValueIndex");
Object.defineProperty(exports, "declarationValueIndex", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_declarationValueIndex).default;
}
});
var _findCommentsInRaws = require("./findCommentsInRaws");
Object.defineProperty(exports, "findCommentsInRaws", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_findCommentsInRaws).default;
}
});
var _hasInterpolatingAmpersand = require("./hasInterpolatingAmpersand");

@@ -17,2 +53,20 @@

var _isInlineComment = require("./isInlineComment");
Object.defineProperty(exports, "isInlineComment", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isInlineComment).default;
}
});
var _isSingleLineString = require("./isSingleLineString");
Object.defineProperty(exports, "isSingleLineString", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isSingleLineString).default;
}
});
var _isStandardRule = require("./isStandardRule");

@@ -36,8 +90,8 @@

var _parseSelector = require("./parseSelector");
var _isWhitespace = require("./isWhitespace");
Object.defineProperty(exports, "parseSelector", {
Object.defineProperty(exports, "isWhitespace", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_parseSelector).default;
return _interopRequireDefault(_isWhitespace).default;
}

@@ -55,2 +109,47 @@ });

var _optionsHaveException = require("./optionsHaveException");
Object.defineProperty(exports, "optionsHaveException", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_optionsHaveException).default;
}
});
var _optionsHaveIgnored = require("./optionsHaveIgnored");
Object.defineProperty(exports, "optionsHaveIgnored", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_optionsHaveIgnored).default;
}
});
var _parseSelector = require("./parseSelector");
Object.defineProperty(exports, "parseSelector", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_parseSelector).default;
}
});
var _sassValueParser = require("./sassValueParser");
Object.defineProperty(exports, "findOperators", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_sassValueParser).default;
}
});
var _whitespaceChecker = require("./whitespaceChecker");
Object.defineProperty(exports, "whitespaceChecker", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_whitespaceChecker).default;
}
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

5

package.json
{
"name": "stylelint-scss",
"description": "A collection of SCSS specific rules for stylelint",
"version": "1.2.1",
"version": "1.3.0",
"author": "Krister Kari",

@@ -16,6 +16,7 @@ "babel": {

"lodash": "^4.11.1",
"postcss-media-query-parser": "^0.1.0",
"postcss-resolve-nested-selector": "^0.1.1",
"postcss-selector-parser": "^2.0.0",
"postcss-value-parser": "^3.3.0",
"stylelint": "^6.5.1"
"stylelint": "^7.0.3"
},

@@ -22,0 +23,0 @@ "devDependencies": {

@@ -0,0 +0,0 @@ import { createPlugin } from "stylelint"

@@ -0,0 +0,0 @@ import { utils } from "stylelint"

@@ -0,0 +0,0 @@ # at-extend-no-missing-placeholder

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # at-function-pattern

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # at-import-no-partial-extension

@@ -0,0 +0,0 @@ import { utils } from "stylelint"

@@ -0,0 +0,0 @@ # at-import-no-partial-leading-underscore

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # at-import-partial-extension-blacklist

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # at-import-partial-extension-whitelist

@@ -0,0 +0,0 @@ import { utils } from "stylelint"

# at-mixin-no-argumentless-call-parentheses
**Deprecated. Use [`at-mixin-argumentless-call-parentheses`](../at-mixin-argumentless-call-parentheses/README.md) instead.**
Disallow parentheses in argumentless `@mixin` calls.

@@ -4,0 +6,0 @@

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # at-mixin-pattern

@@ -0,0 +0,0 @@ import { includes } from "lodash"

@@ -0,0 +0,0 @@ # dollar-variable-no-missing-interpolation

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # dollar-variable-pattern

@@ -7,7 +7,17 @@ import atExtendNoMissingPlaceholder from "./at-extend-no-missing-placeholder"

import atImportPartialExtensionWhitelist from "./at-import-partial-extension-whitelist"
import atMixinArgumentlessCallParentheses from "./at-mixin-argumentless-call-parentheses"
import atMixinNoArgumentlessCallParentheses from "./at-mixin-no-argumentless-call-parentheses"
import atMixinPattern from "./at-mixin-pattern"
import dollarVariableColonNewlineAfter from "./dollar-variable-colon-newline-after"
import dollarVariableColonSpaceAfter from "./dollar-variable-colon-space-after"
import dollarVariableColonSpaceBefore from "./dollar-variable-colon-space-before"
import dollarVariableNoMissingInterpolation from "./dollar-variable-no-missing-interpolation"
import dollarVariablePattern from "./dollar-variable-pattern"
import doubleSlashCommentEmptyLineBefore from "./double-slash-comment-empty-line-before"
import doubleSlashCommentInline from "./double-slash-comment-inline"
import doubleSlashCommentWhitespaceInside from "./double-slash-comment-whitespace-inside"
import mediaFeatureValueDollarVariable from "./media-feature-value-dollar-variable"
import operatorNoNewlineAfter from "./operator-no-newline-after"
import operatorNoNewlineBefore from "./operator-no-newline-before"
import operatorNoUnspaced from "./operator-no-unspaced"
import partialNoImport from "./partial-no-import"

@@ -24,7 +34,17 @@ import percentPlaceholderPattern from "./percent-placeholder-pattern"

"at-import-partial-extension-whitelist": atImportPartialExtensionWhitelist,
"at-mixin-argumentless-call-parentheses": atMixinArgumentlessCallParentheses,
"at-mixin-no-argumentless-call-parentheses": atMixinNoArgumentlessCallParentheses,
"at-mixin-pattern": atMixinPattern,
"dollar-variable-colon-newline-after": dollarVariableColonNewlineAfter,
"dollar-variable-colon-space-after": dollarVariableColonSpaceAfter,
"dollar-variable-colon-space-before": dollarVariableColonSpaceBefore,
"dollar-variable-no-missing-interpolation": dollarVariableNoMissingInterpolation,
"dollar-variable-pattern": dollarVariablePattern,
"double-slash-comment-empty-line-before": doubleSlashCommentEmptyLineBefore,
"double-slash-comment-inline": doubleSlashCommentInline,
"double-slash-comment-whitespace-inside": doubleSlashCommentWhitespaceInside,
"media-feature-value-dollar-variable": mediaFeatureValueDollarVariable,
"operator-no-newline-after": operatorNoNewlineAfter,
"operator-no-newline-before": operatorNoNewlineBefore,
"operator-no-unspaced": operatorNoUnspaced,
"percent-placeholder-pattern": percentPlaceholderPattern,

@@ -31,0 +51,0 @@ "partial-no-import": partialNoImport,

@@ -0,0 +0,0 @@ import { utils } from "stylelint"

@@ -0,0 +0,0 @@ # media-feature-value-dollar-variable

@@ -18,2 +18,9 @@ import { utils } from "stylelint"

if (root.source.input.file === undefined || !root.source.input.file) {
result.warn((
"The 'partial-no-import' rule won't work if linting in a code string without an actual file."
))
return
}
const fileName = nodeJsPath.basename(root.source.input.file)

@@ -20,0 +27,0 @@ const extName = nodeJsPath.extname(root.source.input.file)

@@ -0,0 +0,0 @@ # partial-no-import

@@ -0,0 +0,0 @@ import { isRegExp, isString } from "lodash"

@@ -0,0 +0,0 @@ # percent-placeholder-pattern

@@ -0,0 +0,0 @@ import { utils } from "stylelint"

@@ -0,0 +0,0 @@ # selector-no-redundant-nesting-selector

@@ -0,0 +0,0 @@ import _ from "lodash"

@@ -0,5 +1,16 @@

export { default as atRuleParamIndex } from "./atRuleParamIndex"
export { default as configurationError } from "./configurationError"
export { default as declarationValueIndex } from "./declarationValueIndex"
export { default as findCommentsInRaws } from "./findCommentsInRaws"
export { default as hasInterpolatingAmpersand } from "./hasInterpolatingAmpersand"
export { default as isInlineComment } from "./isInlineComment"
export { default as isSingleLineString } from "./isSingleLineString"
export { default as isStandardRule } from "./isStandardRule"
export { default as isStandardSelector } from "./isStandardSelector"
export { default as isWhitespace } from "./isWhitespace"
export { default as namespace } from "./namespace"
export { default as optionsHaveException } from "./optionsHaveException"
export { default as optionsHaveIgnored } from "./optionsHaveIgnored"
export { default as parseSelector } from "./parseSelector"
export { default as namespace } from "./namespace"
export { default as findOperators } from "./sassValueParser"
export { default as whitespaceChecker } from "./whitespaceChecker"

@@ -0,0 +0,0 @@ import _ from "lodash"

@@ -0,0 +0,0 @@ const prefix = "scss"

@@ -0,0 +0,0 @@ import postCssSelectorParser from "postcss-selector-parser"

Sorry, the diff of this file is not supported yet

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