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" + ] + } }