Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-astro

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-astro - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

6

CHANGELOG.md
# prettier-plugin-astro
## 0.1.3
### Patch Changes
- 4c8d8dc: Use Prettier option: 'singleAttributePerLine'
## 0.1.2

@@ -4,0 +10,0 @@

5

dist/index.js

@@ -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 @@ ? ''

2

package.json
{
"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

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