stylelint-scss
Advanced tools
Comparing version 5.3.2 to 6.0.0
{ | ||
"name": "stylelint-scss", | ||
"description": "A collection of SCSS-specific rules for Stylelint", | ||
"version": "5.3.2", | ||
"version": "6.0.0", | ||
"author": "Krister Kari", | ||
@@ -9,4 +9,7 @@ "repository": "stylelint-scss/stylelint-scss", | ||
"main": "src/index.js", | ||
"engines": { | ||
"node": ">=18.12.0" | ||
}, | ||
"peerDependencies": { | ||
"stylelint": "^14.5.1 || ^15.0.0" | ||
"stylelint": "^16.0.2" | ||
}, | ||
@@ -21,2 +24,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.54.0", | ||
@@ -26,3 +30,3 @@ "github-contributors-list": "^1.2.5", | ||
"jest": "^29.7.0", | ||
"jest-preset-stylelint": "^6.3.2", | ||
"jest-preset-stylelint": "^7.0.0", | ||
"lint-staged": "^14.0.1", | ||
@@ -34,3 +38,3 @@ "np": "^9.0.0", | ||
"prettier": "^3.1.0", | ||
"stylelint": "^15.11.0" | ||
"stylelint": "^16.0.2" | ||
}, | ||
@@ -56,3 +60,3 @@ "files": [ | ||
"release": "np", | ||
"jest": "jest", | ||
"jest": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest", | ||
"test": "npm run jest -- --coverage", | ||
@@ -59,0 +63,0 @@ "watch": "npm run jest -- --watch", |
"use strict"; | ||
const { rules, utils } = require("stylelint"); | ||
const { utils } = require("stylelint"); | ||
const { isRegExp, isString } = require("../../utils/validateTypes"); | ||
@@ -36,7 +36,3 @@ const namespace = require("../../utils/namespace"); | ||
const messages = utils.ruleMessages(ruleName, { | ||
rejected: (...args) => { | ||
return rules[ruleToCheckAgainst].messages | ||
.rejected(...args) | ||
.replace(` (${ruleToCheckAgainst})`, ""); | ||
} | ||
rejected: atRule => `Unexpected unknown at-rule "${atRule}"` | ||
}); | ||
@@ -49,3 +45,3 @@ | ||
function rule(primaryOption, secondaryOptions) { | ||
return (root, result) => { | ||
return async (root, result) => { | ||
const validOptions = utils.validateOptions( | ||
@@ -76,3 +72,3 @@ result, | ||
utils.checkAgainstRule( | ||
await utils.checkAgainstRule( | ||
{ | ||
@@ -79,0 +75,0 @@ ruleName: ruleToCheckAgainst, |
"use strict"; | ||
const { rules, utils } = require("stylelint"); | ||
const { utils } = require("stylelint"); | ||
const namespace = require("../../utils/namespace"); | ||
@@ -12,6 +12,3 @@ const ruleUrl = require("../../utils/ruleUrl"); | ||
const messages = utils.ruleMessages(ruleName, { | ||
rejected: rules[coreRuleName].messages.rejected.replace( | ||
` (${coreRuleName})`, | ||
"" | ||
) | ||
rejected: "Unexpected empty comment" | ||
}); | ||
@@ -18,0 +15,0 @@ |
"use strict"; | ||
const valueParser = require("postcss-value-parser"); | ||
const { rules, utils } = require("stylelint"); | ||
const { utils } = require("stylelint"); | ||
const { ALL_FUNCTIONS } = require("../../utils/functions"); | ||
@@ -15,7 +15,3 @@ const namespace = require("../../utils/namespace"); | ||
const messages = utils.ruleMessages(ruleName, { | ||
rejected: (...args) => { | ||
return rules[ruleToCheckAgainst].messages | ||
.rejected(...args) | ||
.replace(` (${ruleToCheckAgainst})`, ""); | ||
} | ||
rejected: name => `Unexpected unknown function "${name}"` | ||
}); | ||
@@ -54,3 +50,3 @@ | ||
function rule(primaryOption, secondaryOptions) { | ||
return (root, result) => { | ||
return async (root, result) => { | ||
const validOptions = utils.validateOptions( | ||
@@ -91,3 +87,3 @@ result, | ||
utils.checkAgainstRule( | ||
await utils.checkAgainstRule( | ||
{ | ||
@@ -94,0 +90,0 @@ ruleName: ruleToCheckAgainst, |
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
279364
13
116
8100