prettier-plugin-astro
Advanced tools
Comparing version 0.11.0 to 0.11.1
{ | ||
"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", |
@@ -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 @@ |
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
103587
102