45 lines
848 B
Nix
45 lines
848 B
Nix
inputs:
|
|
let
|
|
data = {
|
|
root = true;
|
|
|
|
"*" = {
|
|
end_of_line = "lf";
|
|
insert_final_newline = true;
|
|
trim_trailing_whitespace = true;
|
|
charset = "utf-8";
|
|
indent_style = "space";
|
|
indent_size = 4;
|
|
indent_brace_style = "K&R";
|
|
max_line_length = 80;
|
|
tab_width = 4;
|
|
curly_bracket_next_line = true;
|
|
};
|
|
|
|
"*.md" = {
|
|
max_line_length = "off";
|
|
};
|
|
|
|
"package.json" = {
|
|
indent_style = "space";
|
|
indent_size = 2;
|
|
tab_width = 2;
|
|
};
|
|
|
|
"{LICENSES/**,LICENSE}" = {
|
|
end_of_line = "unset";
|
|
insert_final_newline = "unset";
|
|
trim_trailing_whitespace = "unset";
|
|
charset = "unset";
|
|
indent_style = "unset";
|
|
indent_size = "unset";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
inherit data;
|
|
hook.mode = "copy";
|
|
output = ".editorconfig";
|
|
format = "toml";
|
|
}
|