Socket
Socket
Sign inDemoInstall

stylelint

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint - npm Package Compare versions

Comparing version 15.6.0 to 15.6.1

24

lib/formatters/githubFormatter.js

@@ -14,15 +14,17 @@ 'use strict';

return results
.flatMap((result) => {
const { source, warnings } = preprocessWarnings(result);
const lines = results.flatMap((result) => {
const { source, warnings } = preprocessWarnings(result);
return warnings.map(({ line, column, endLine, endColumn, text, severity, rule }) => {
const msg = buildMessage(text, metadata[rule]);
return warnings.map(({ line, column, endLine, endColumn, text, severity, rule }) => {
const msg = buildMessage(text, metadata[rule]);
return endLine === undefined
? `::${severity} file=${source},line=${line},col=${column},title=${title}::${msg}`
: `::${severity} file=${source},line=${line},col=${column},endLine=${endLine},endColumn=${endColumn},title=${title}::${msg}`;
});
})
.join('\n');
return endLine === undefined
? `::${severity} file=${source},line=${line},col=${column},title=${title}::${msg}`
: `::${severity} file=${source},line=${line},col=${column},endLine=${endLine},endColumn=${endColumn},title=${title}::${msg}`;
});
});
lines.push('');
return lines.join('\n');
};

@@ -29,0 +31,0 @@

@@ -280,2 +280,3 @@ 'use strict';

'link',
'modal',
'only-child',

@@ -282,0 +283,0 @@ 'only-of-type',

@@ -50,2 +50,39 @@ 'use strict';

],
[
'transition',
(decls) => {
/** @type {(input: string | undefined) => string[]} */
const commaSeparated = (input = '') =>
input
.split(',')
.map((s) => s.trim())
.filter((s) => s.length > 0);
const delays = commaSeparated(decls.get('transition-delay')?.value);
const durations = commaSeparated(decls.get('transition-duration')?.value);
const timingFunctions = commaSeparated(decls.get('transition-timing-function')?.value);
const properties = commaSeparated(decls.get('transition-property')?.value);
if (!(delays.length && durations.length && timingFunctions.length && properties.length)) {
return;
}
// transition-property is the canonical list of the number of properties;
// see spec: https://w3c.github.io/csswg-drafts/css-transitions/#transition-property-property
// if there are more transition-properties than duration/delay/timings,
// the other properties are computed cyclically -- ex with %
// see spec example #3: https://w3c.github.io/csswg-drafts/css-transitions/#example-d94cbd75
return properties
.map((property, i) => {
return [
property,
durations[i % durations.length],
timingFunctions[i % timingFunctions.length],
delays[i % delays.length],
]
.filter(isString)
.join(' ');
})
.join(', ');
},
],
]);

@@ -52,0 +89,0 @@

{
"name": "stylelint",
"version": "15.6.0",
"version": "15.6.1",
"description": "A mighty CSS linter that helps you avoid errors and enforce conventions.",

@@ -142,7 +142,7 @@ "keywords": [

"picocolors": "^1.0.0",
"postcss": "^8.4.22",
"postcss": "^8.4.23",
"postcss-media-query-parser": "^0.2.3",
"postcss-resolve-nested-selector": "^0.1.1",
"postcss-safe-parser": "^6.0.0",
"postcss-selector-parser": "^6.0.11",
"postcss-selector-parser": "^6.0.12",
"postcss-value-parser": "^4.2.0",

@@ -157,3 +157,3 @@ "resolve-from": "^5.0.0",

"v8-compile-cache": "^2.3.0",
"write-file-atomic": "^5.0.0"
"write-file-atomic": "^5.0.1"
},

@@ -184,3 +184,3 @@ "devDependencies": {

"deepmerge": "^4.3.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-stylelint": "^18.0.0",

@@ -192,7 +192,7 @@ "eslint-plugin-jest": "^27.2.1",

"jest-watch-typeahead": "^2.2.2",
"lint-staged": "^13.2.1",
"lint-staged": "^13.2.2",
"node-fetch": "^3.3.1",
"np": "^7.7.0",
"npm-run-all": "^4.1.5",
"patch-package": "^6.5.1",
"patch-package": "^7.0.0",
"postcss-html": "^1.5.0",

@@ -199,0 +199,0 @@ "postcss-import": "^15.1.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