style(flake): Use yamlfmt instead of prettier
This commit is contained in:
parent
2b4599592c
commit
4110f659c6
61
flake.nix
61
flake.nix
|
@ -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 = {
|
||||||
|
|
Reference in New Issue