stylelint-prettier
Advanced tools
Comparing version 1.0.4 to 1.0.5
# Changelog | ||
## 1.0.5 (2018-11-16) | ||
- Specifying an explict syntax with `--syntax` will no longer crash when autofixing (#11) | ||
## 1.0.4 (2018-11-11) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "stylelint-prettier", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Runs prettier as an stylelint rule", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -124,6 +124,9 @@ const stylelint = require('stylelint'); | ||
const newRoot = root.source.syntax.parse( | ||
rawData, | ||
root.source.input.opts | ||
); | ||
// If root.source.syntax exists then it means stylelint had to use | ||
// postcss-syntax to guess the postcss parser that it should use based | ||
// upon the input filename. | ||
// In that case we want to use the parser that postcss-syntax picked. | ||
// Otherwise use the syntax parser that was provided in the options | ||
const syntax = root.source.syntax || result.opts.syntax; | ||
const newRoot = syntax.parse(rawData); | ||
@@ -130,0 +133,0 @@ // For reasons I don't really undersand, when the original input does |
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
13455
158