Skip to content

Commit

Permalink
Added formatting for svelte as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tmr232 committed Sep 5, 2024
1 parent 843d61a commit 33f7e63
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"esbuild-plugin-copy": "^2.1.1",
"eslint": "^9.9.1",
"prettier": "3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"svelte": "^4.2.18",
"tree-sitter-cli": "^0.23.0",
"tree-sitter-go": "^0.23.0",
Expand Down
5 changes: 4 additions & 1 deletion prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {};
const config = {
plugins: ["prettier-plugin-svelte"],
overrides: [{ files: "*.svelte", options: { parser: "svelte" } }],
};

export default config;
2 changes: 1 addition & 1 deletion src/frontend/src/lib/Graph.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
.toString()
.replaceAll(
"(",
"<div style='margin-left:10px;border-left: 1px #888 solid;'>"
"<div style='margin-left:10px;border-left: 1px #888 solid;'>",
)
.replaceAll(")", "</div>");
Expand Down

0 comments on commit 33f7e63

Please sign in to comment.