prettier-plugin-astro
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -628,3 +628,3 @@ 'use strict'; | ||
} | ||
if (node.type === 'element' && node.name === 'script') { | ||
if (node.type === 'element' && node.name === 'script' && node.children.length) { | ||
const typeAttribute = (_a = node.attributes.find((attr) => attr.name === 'type')) === null || _a === void 0 ? void 0 : _a.value; | ||
@@ -631,0 +631,0 @@ let parser = 'babel-ts'; |
{ | ||
"name": "prettier-plugin-astro", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "description": "A Prettier Plugin for formatting Astro files", |
@@ -49,3 +49,3 @@ # [Prettier](https://prettier.io/) Plugin for [Astro](https://astro.build/) | ||
The settings above ensure that VS Code is aware that Prettier can be used for Astro files, and sets Prettier as the default formatter for Astro files. | ||
The settings above ensure that VS Code is aware that Prettier can be used for Astro files, and sets Prettier as the default formatter for Astro files. | ||
@@ -52,0 +52,0 @@ ### Reporting issues |
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
104681
136793