stylelint-formatter-pretty
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -44,3 +44,3 @@ import path from 'node:path'; | ||
.sort((a, b) => a.text === b.text) | ||
.filter((item, idx, array) => array.findIndex(d => d.text === item.text) === idx) | ||
.filter((item, index, array) => array.findIndex(d => d.text === item.text) === index) | ||
.map(item => ({ | ||
@@ -127,3 +127,3 @@ text: item.text.replaceAll(/\B"(.*?)"\B|\B'(.*?)'\B/g, (m, p1, p2) => pico.bold(p1 || p2)), | ||
maxMessageWidth = Math.max(messageWidth, maxMessageWidth); | ||
showLineNumbers = showLineNumbers || x.line || x.column; | ||
showLineNumbers ||= x.line || x.column; | ||
@@ -130,0 +130,0 @@ lines.push({ |
{ | ||
"name": "stylelint-formatter-pretty", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A pretty Stylelint formatter.", | ||
@@ -28,4 +28,5 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && c8 ava", | ||
"coverage": "c8 report --reporter=lcov" | ||
"coverage": "c8 report --reporter=lcov", | ||
"prepare": "husky", | ||
"test": "xo && c8 node --test" | ||
}, | ||
@@ -44,4 +45,4 @@ "files": [ | ||
"dependencies": { | ||
"ansi-escapes": "^6.2.0", | ||
"log-symbols": "^6.0.0", | ||
"ansi-escapes": "^7.0.0", | ||
"log-symbols": "^7.0.0", | ||
"picocolors": "^1.0.0", | ||
@@ -53,8 +54,7 @@ "plur": "^5.1.0", | ||
"devDependencies": { | ||
"ava": "^6.0.1", | ||
"c8": "^8.0.0", | ||
"husky": "^8.0.1", | ||
"c8": "^10.1.2", | ||
"husky": "^9.0.10", | ||
"lint-staged": "^15.2.0", | ||
"strip-ansi": "^7.1.0", | ||
"xo": "^0.56.0" | ||
"xo": "^0.59.3" | ||
}, | ||
@@ -61,0 +61,0 @@ "peerDependencies": { |
@@ -32,3 +32,3 @@ # stylelint-formatter-pretty | ||
```bash | ||
stylelint file.css --custom-formatter=node_modules/stylelint-formatter-pretty | ||
stylelint file.css --custom-formatter stylelint-formatter-pretty | ||
``` | ||
@@ -35,0 +35,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5
0
11602
+ Addedansi-escapes@7.0.0(transitive)
+ Addedenvironment@1.1.0(transitive)
+ Addedis-unicode-supported@2.1.0(transitive)
+ Addedlog-symbols@7.0.0(transitive)
+ Addedyoctocolors@2.1.1(transitive)
- Removedansi-escapes@6.2.1(transitive)
- Removedchalk@5.4.1(transitive)
- Removedis-unicode-supported@1.3.0(transitive)
- Removedlog-symbols@6.0.0(transitive)
Updatedansi-escapes@^7.0.0
Updatedlog-symbols@^7.0.0