Socket
Socket
Sign inDemoInstall

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.11.0 to 0.11.1

5

package.json
{
"name": "prettier-plugin-astro",
"version": "0.11.0",
"version": "0.11.1",
"type": "module",

@@ -12,4 +12,3 @@ "description": "A Prettier Plugin for formatting Astro files",

"engines": {
"node": "^14.15.0 || >=16.0.0",
"pnpm": ">=7.14.0"
"node": "^14.15.0 || >=16.0.0"
},

@@ -16,0 +15,0 @@ "packageManager": "pnpm@8.6.2",

20

README.md

@@ -7,6 +7,17 @@ # [Prettier](https://prettier.io/) Plugin for [Astro](https://astro.build/)

First install Prettier and the plugin:
```shell
npm i --save-dev prettier-plugin-astro prettier
npm i --save-dev prettier prettier-plugin-astro
```
Then add the plugin to your Prettier configuration:
```js
/** @type {import("prettier").Config} */
export default {
plugins: ['prettier-plugin-astro'],
};
```
### Recommended configuration

@@ -17,4 +28,5 @@

```js
module.exports = {
plugins: [require.resolve('prettier-plugin-astro')],
/** @type {import("prettier").Config} */
export default {
plugins: ['prettier-plugin-astro'],
overrides: [

@@ -31,4 +43,2 @@ {

Alternatively, for use inside a non-JS config file, the `require.resolve` call can be changed to a direct path, such as `plugins: ["./node_modules/prettier-plugin-astro"]`.
To customize formatting behavior, see the [Configuration](#configuration) section below.

@@ -35,0 +45,0 @@

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