From 2f899aa8faa1ff4f595941c353a245ae3aaf400b Mon Sep 17 00:00:00 2001 From: dish Date: Thu, 20 Feb 2025 13:51:52 -0500 Subject: [PATCH] add new formatter configuration --- .zed/tasks.json | 10 ++++++++++ deno.json | 15 ++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.zed/tasks.json b/.zed/tasks.json index 0c419ee..41006c0 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -31,5 +31,15 @@ "reveal_target": "dock", "hide": "on_success", "shell": "system" + }, + { + "label": "start formatter", + "command": "deno fmt --watch", + "use_new_terminal": true, + "allow_concurrent_runs": false, + "reveal": "never", + "reveal_target": "dock", + "hide": "on_success", + "shell": "system" } ] diff --git a/deno.json b/deno.json index fb69bab..200b9d7 100644 --- a/deno.json +++ b/deno.json @@ -19,5 +19,18 @@ "compilerOptions": { "types": ["lume/types.ts"] }, - "nodeModulesDir": "auto" + "nodeModulesDir": "auto", + "fmt": { + "useTabs": false, + "lineWidth": 100, + "proseWrap": "always", + "indentWidth": 2, + "semiColons": true, + "singleQuote": false, + "exclude": [ + "scripts/*/src/", + "src/static/icons/*.css", + "src/static/styles.css" + ] + } } -- 2.51.2