Gathering detailed insights and metrics for @dylanvann/prettier-plugin-svelte
Gathering detailed insights and metrics for @dylanvann/prettier-plugin-svelte
Gathering detailed insights and metrics for @dylanvann/prettier-plugin-svelte
Gathering detailed insights and metrics for @dylanvann/prettier-plugin-svelte
Format your svelte components using prettier.
npm install @dylanvann/prettier-plugin-svelte
Typescript
Module System
Node Version
NPM Version
70.2
Supply Chain
98.1
Quality
75.2
Maintenance
50
Vulnerability
99.6
License
TypeScript (64.61%)
HTML (34.44%)
JavaScript (0.95%)
Total Downloads
521
Last Day
1
Last Week
3
Last Month
13
Last Year
94
MIT License
778 Stars
348 Commits
99 Forks
14 Watchers
5 Branches
44 Contributors
Updated on Jun 21, 2025
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
@dylanvann/prettier-plugin-svelte@1.1.1
Unpacked Size
110.47 kB
Size
26.29 kB
File Count
6
NPM Version
6.14.5
Node Version
14.2.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-40%
3
Compared to previous week
Last Month
-18.8%
13
Compared to previous month
Last Year
-21%
94
Compared to previous year
Format your svelte components using prettier.
{}
, event bindings on:click=""
, and moreThis plugin comes with Svelte for VS Code and Svelte for Atom so just install extension for your favorite editor and enjoy.
Configurations are optional
Make .prettierrc
file in your project directory (Read more about prettier config files here)
and add your preferred configuration options:
svelteSortOrder
scripts-styles-markup
svelteStrictMode
false
svelteAllowShorthand
true
svelteBracketNewLine
false
>
of a multiline element on a new line (svelte equivalent of jsxBracketSameLine rule)For example:
1<script> 2 export let value; 3</script> 4 5<!-- allowShorthand: true --> 6<input type="text" {value}> 7 8<!-- allowShorthand: false --> 9<input type="text" value={value}> 10
.prettierrc
example1{ 2 "svelteSortOrder" : "styles-scripts-markup", 3 "svelteStrictMode": true, 4 "svelteBracketNewLine": true, 5 "svelteAllowShorthand": false 6}
1npm i --save-dev prettier-plugin-svelte prettier
Install prettier-plugin-svelte as a dev dependency in your project.
Then format your code using prettier cli. You may need to add --plugin-search-dir=.
prettier --write --plugin-search-dir=. ./**/*.html
svelte-sort-order
Sort order for scripts, styles, and markup. Defaults to scripts-styles-markup
.
prettier --write --svelte-sort-order scripts-markup-styles ./**/*.svelte
svelte-strict-mode
Enable more strict syntax for HTML. Defaults to false
.
Main difference in strict mode:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 7/29 approved changesets -- score normalized to 2
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More