prettier-plugin-astro
Advanced tools
Comparing version 0.1.2 to 0.1.3
# prettier-plugin-astro | ||
## 0.1.3 | ||
### Patch Changes | ||
- 4c8d8dc: Use Prettier option: 'singleAttributePerLine' | ||
## 0.1.2 | ||
@@ -4,0 +10,0 @@ |
@@ -315,3 +315,4 @@ 'use strict'; | ||
const isSelfClosingTag = isEmpty && (node.type !== 'element' || selfClosingTags.indexOf(node.name) !== -1); | ||
const attributes = path.map(print, 'attributes'); | ||
const attributeLine = opts.singleAttributePerLine && node.attributes.length > 1 ? breakParent : ''; | ||
const attributes = join(attributeLine, path.map(print, 'attributes')); | ||
if (isSelfClosingTag) { | ||
@@ -352,3 +353,3 @@ return group(['<', node.name, indent(group(attributes)), line, `/>`]); | ||
indent(group([ | ||
...attributes, | ||
attributes, | ||
hugStart | ||
@@ -355,0 +356,0 @@ ? '' |
{ | ||
"name": "prettier-plugin-astro", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "description": "A Prettier Plugin for formatting Astro files", |
Sorry, the diff of this file is not supported yet
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
115701
669