chore: fix husky
This commit is contained in:
parent
06f7019330
commit
5fab66444f
4 changed files with 9 additions and 16 deletions
|
@ -4,9 +4,7 @@
|
||||||
"tools": {
|
"tools": {
|
||||||
"husky": {
|
"husky": {
|
||||||
"version": "0.7.1",
|
"version": "0.7.1",
|
||||||
"commands": [
|
"commands": ["husky"],
|
||||||
"husky"
|
|
||||||
],
|
|
||||||
"rollForward": false
|
"rollForward": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,18 +4,13 @@
|
||||||
{
|
{
|
||||||
"name": "run-prettier",
|
"name": "run-prettier",
|
||||||
"command": "yarn",
|
"command": "yarn",
|
||||||
"args": [
|
"args": ["format"],
|
||||||
"format",
|
|
||||||
"${staged}"
|
|
||||||
],
|
|
||||||
"pathMode": "absolute"
|
"pathMode": "absolute"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "dotnet-format",
|
"name": "dotnet-format",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"args": [
|
"args": ["format"]
|
||||||
"format"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,12 +112,12 @@ public static class Users
|
||||||
foreach (var field in oldUser.Fields ?? [])
|
foreach (var field in oldUser.Fields ?? [])
|
||||||
{
|
{
|
||||||
var entries = field.Entries.Select(entry => new FieldEntry
|
var entries = field.Entries.Select(entry => new FieldEntry
|
||||||
{
|
{
|
||||||
Value = entry.Value,
|
Value = entry.Value,
|
||||||
Status = prefMapping.TryGetValue(entry.Status, out var newStatus)
|
Status = prefMapping.TryGetValue(entry.Status, out var newStatus)
|
||||||
? newStatus.ToString()
|
? newStatus.ToString()
|
||||||
: entry.Status,
|
: entry.Status,
|
||||||
})
|
})
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
user.Fields.Add(new Field
|
user.Fields.Add(new Field
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -n .net,node,rate -c magenta,yellow,blue -i 'cd Foxnouns.Backend && dotnet watch --no-hot-reload' 'cd Foxnouns.Frontend && yarn dev' 'cd rate && go run -v .'",
|
"dev": "concurrently -n .net,node,rate -c magenta,yellow,blue -i 'cd Foxnouns.Backend && dotnet watch --no-hot-reload' 'cd Foxnouns.Frontend && yarn dev' 'cd rate && go run -v .'",
|
||||||
"format": "cd frontend && yarn format -w"
|
"format": "cd Foxnouns.Frontend && yarn format"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue