mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
build(nix): Updated prettier config.
This commit is contained in:
@@ -91,11 +91,22 @@
|
|||||||
settings.formatter.prettier = {
|
settings.formatter.prettier = {
|
||||||
excludes = [
|
excludes = [
|
||||||
"public/**"
|
"public/**"
|
||||||
"resources/js/modernizr.js"
|
"mustache/spec/specs/**"
|
||||||
"storage/app/caniuse.json"
|
"*.html"
|
||||||
"*.md"
|
"*.md"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
settings.formatter.ols = {
|
||||||
|
command = "${pkgs.bash}/bin/bash";
|
||||||
|
options = [
|
||||||
|
"-euc"
|
||||||
|
''
|
||||||
|
${pkgs.ols}/bin/odinfmt -w .
|
||||||
|
''
|
||||||
|
];
|
||||||
|
includes = [ "*.odin" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#process-compose.default.settings.processes = { };
|
#process-compose.default.settings.processes = { };
|
||||||
|
|||||||
@@ -117,4 +117,3 @@ json_get_open_graph :: proc(obj: json.Object, key: string) -> Open_Graph {
|
|||||||
}
|
}
|
||||||
return og
|
return og
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -388,4 +388,3 @@ parse_config_menus :: proc(
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -472,10 +472,7 @@ test_warn_duplicate_weights_nil_not_flagged :: proc(t: ^testing.T) {
|
|||||||
logger := log.create_file_logger(f)
|
logger := log.create_file_logger(f)
|
||||||
context.logger = logger
|
context.logger = logger
|
||||||
|
|
||||||
entries := []Menu_Entry {
|
entries := []Menu_Entry{{name = "Alpha", url = "/a/"}, {name = "Beta", url = "/b/"}}
|
||||||
{name = "Alpha", url = "/a/"},
|
|
||||||
{name = "Beta", url = "/b/"},
|
|
||||||
}
|
|
||||||
warn_duplicate_weights("main", entries)
|
warn_duplicate_weights("main", entries)
|
||||||
|
|
||||||
log.destroy_file_logger(logger)
|
log.destroy_file_logger(logger)
|
||||||
|
|||||||
@@ -302,4 +302,3 @@ write_value :: proc(b: ^strings.Builder, a: any, escape: bool) {
|
|||||||
strings.write_string(b, s[start:])
|
strings.write_string(b, s[start:])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -985,4 +985,3 @@ warn_context_depth :: proc(current: Template, node: Node) {
|
|||||||
diag := format_error(path, current.source, node.pos, msg, "", colorize = should_colorize())
|
diag := format_error(path, current.source, node.pos, msg, "", colorize = should_colorize())
|
||||||
log.warnf("%s", diag)
|
log.warnf("%s", diag)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
{"params":{"social":[{"name":"github","url":"https://github.com/test"},{"name":"rss","url":"/index.xml"}]}}
|
{
|
||||||
|
"params": {
|
||||||
|
"social": [
|
||||||
|
{ "name": "github", "url": "https://github.com/test" },
|
||||||
|
{ "name": "rss", "url": "/index.xml" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -459,4 +459,3 @@ helix_version_from_path :: proc(path: string) -> string {
|
|||||||
if end <= start do return ""
|
if end <= start do return ""
|
||||||
return path[start:end]
|
return path[start:end]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user