stylelint-prettier
Advanced tools
Comparing version 5.0.0 to 5.0.1
# Changelog | ||
## 5.0.1 (2024-07-13) | ||
Fix case where when autofixing multiple other rules in addition to prettier, the other autofixes would be thrown away (#360) | ||
## 5.0.0 (2023-12-10) | ||
@@ -4,0 +8,0 @@ |
@@ -46,3 +46,2 @@ import stylelint from 'stylelint'; | ||
const filepath = root.source.input.file || '<input>'; | ||
const source = root.source.input.css; | ||
@@ -111,2 +110,3 @@ const prettierRcOptions = await prettier.resolveConfig(filepath, { | ||
const source = root.toString(); | ||
try { | ||
@@ -187,3 +187,3 @@ prettierSource = await prettier.format(source, prettierOptions); | ||
); | ||
}, root.source.input.css); | ||
}, source); | ||
@@ -190,0 +190,0 @@ // If root.source.syntax exists then it means stylelint had to use |
{ | ||
"name": "stylelint-prettier", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Runs prettier as an stylelint rule", | ||
@@ -56,3 +56,2 @@ "keywords": [ | ||
"prettier-plugin-svelte": "^3.0.0", | ||
"strip-ansi": "^7.1.0", | ||
"stylelint": "^16.0.1", | ||
@@ -59,0 +58,0 @@ "stylelint-test-rule-node": "^0.2.0", |
@@ -82,3 +82,3 @@ # stylelint-prettier [![Build Status](https://github.com/prettier/stylelint-prettier/workflows/CI/badge.svg?branch=main)](https://github.com/prettier/stylelint-prettier/actions?query=workflow%3ACI+branch%3Amain) | ||
"extends": [ | ||
"stylelint-prettier/recommended" | ||
"stylelint-prettier/recommended", | ||
"stylelint-config-prettier" | ||
@@ -85,0 +85,0 @@ ] |
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
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
21035
17
0