prettier-plugin-svelte
Advanced tools
Comparing version 2.8.1 to 2.9.0
{ | ||
"name": "prettier-plugin-svelte", | ||
"version": "2.8.1", | ||
"version": "2.9.0", | ||
"description": "Svelte plugin for prettier", | ||
@@ -40,3 +40,3 @@ "main": "plugin.js", | ||
"rollup-plugin-typescript": "1.0.1", | ||
"svelte": "^3.47.0", | ||
"svelte": "^3.54.0", | ||
"ts-node": "^9.1.1", | ||
@@ -43,0 +43,0 @@ "tslib": "^2.0.3", |
@@ -154,4 +154,16 @@ # Prettier for Svelte 3 components | ||
There's a Tailwind Prettier Plugin to format classes in a certain way. This plugin bundles `prettier-plugin-svelte`, so if you want to use the Tailwind plugin, uninstall `prettier-plugin-svelte` and use the Tailwind plugin instead. If you are using VS Code, make sure to have the Prettier extension installed and switch the default formatter for Svelte files to it. | ||
There is a [Tailwind Prettier Plugin](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) to format classes in a certain way. This plugin must be loaded last, so if you want to use the Tailwind plugin, disable Prettier auto-loading and place `prettier-plugin-tailwindcss` in the end of the plugins array. If you are using VS Code, make sure to have the Prettier extension installed and switch the default formatter for Svelte files to it. | ||
```json5 | ||
// .prettierrc | ||
{ | ||
// .. | ||
"plugins": [ | ||
"prettier-plugin-svelte", | ||
"prettier-plugin-tailwindcss" // MUST come last | ||
], | ||
"pluginSearchDirs": false | ||
} | ||
``` | ||
More info: https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins | ||
@@ -158,0 +170,0 @@ |
Sorry, the diff of this file is too big to display
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
253906
2043
190