style(flake): Use yamlfmt instead of prettier

This commit is contained in:
Benedikt Peetz 2024-03-26 20:07:32 +01:00
parent 2b4599592c
commit 4110f659c6
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 31 additions and 30 deletions

View File

@ -137,42 +137,43 @@
indent_size = 4; indent_size = 4;
}; };
shellcheck.enable = true; shellcheck.enable = true;
prettier = { # prettier = {
settings = { # settings = {
arrowParens = "always"; # arrowParens = "always";
bracketSameLine = false; # bracketSameLine = false;
bracketSpacing = true; # bracketSpacing = true;
editorconfig = true; # editorconfig = true;
embeddedLanguageFormatting = "auto"; # embeddedLanguageFormatting = "auto";
endOfLine = "lf"; # endOfLine = "lf";
# experimentalTernaries = false; # # experimentalTernaries = false;
htmlWhitespaceSensitivity = "css"; # htmlWhitespaceSensitivity = "css";
insertPragma = false; # insertPragma = false;
jsxSingleQuote = true; # jsxSingleQuote = true;
printWidth = 80; # printWidth = 80;
proseWrap = "always"; # proseWrap = "always";
quoteProps = "consistent"; # quoteProps = "consistent";
requirePragma = false; # requirePragma = false;
semi = true; # semi = true;
singleAttributePerLine = true; # singleAttributePerLine = true;
singleQuote = true; # singleQuote = true;
trailingComma = "all"; # trailingComma = "all";
useTabs = false; # useTabs = false;
vueIndentScriptAndStyle = false; # vueIndentScriptAndStyle = false;
#
tabWidth = 4; # tabWidth = 4;
overrides = { # overrides = {
files = ["*.js"]; # files = ["*.js"];
options.tabwidth = 2; # options.tabwidth = 2;
}; # };
}; # };
}; # };
stylua.enable = true; stylua.enable = true;
ruff = { ruff = {
enable = true; enable = true;
format = true; format = true;
}; };
taplo.enable = true; taplo.enable = true;
yamlfmt.enable = true;
}; };
settings = { settings = {