diff --git a/.editorconfig b/.editorconfig index 48d055c..38fd775 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,9 +3,14 @@ root = true [*] charset = utf-8 end_of_line = lf +indent_style = tab indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true -[*.{yml,yaml,md}] +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +[*.md] indent_size = 2 diff --git a/prettier.config.ts b/prettier.config.ts index 4668c84..63be9fe 100644 --- a/prettier.config.ts +++ b/prettier.config.ts @@ -1,8 +1,8 @@ import { type Config } from "prettier"; const config: Config = { - printWidth: 100, - useTabs: false, + printWidth: 100, // Matches Rust default and looks the best + useTabs: true, // Preferred for accessibility (screen readers, variable fonts) and tab width is easily adjustable per user plugins: ["@ianvs/prettier-plugin-sort-imports"], importOrderTypeScriptVersion: "5.0.0", importOrder: [