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