Skip to content

Commit 0290360

Browse files
authored
chore: Upgrade to Ng 19.1 (#381)
1 parent 6efa26d commit 0290360

29 files changed

+1905
-3072
lines changed

.devcontainer/devcontainer.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@
1313
"customizations": {
1414
"vscode": {
1515
"extensions": [
16+
"angular.ng-template",
17+
"azurite.azurite",
1618
"ms-azuretools.vscode-azurefunctions",
17-
"ms-dotnettools.csharp",
18-
"angular.ng-template"
19-
]
19+
"ms-azuretools.vscode-azurestorage",
20+
"ms-dotnettools.csdevkit",
21+
"ms-vscode-remote.remote-containers"
22+
],
23+
"settings": {
24+
"terminal.integrated.shell.linux": "/usr/bin/bash"
25+
}
2026
}
2127
},
22-
"settings": {
23-
"terminal.integrated.shell.linux": "/usr/bin/bash"
24-
},
2528
"postCreateCommand": "cd client && npm install",
2629
"remoteEnv": {
2730
"ALPACA_KEY": "${localEnv:ALPACA_KEY}",

.editorconfig

+33-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
1-
# top-most EditorConfig file
1+
# EditorConfig: https://EditorConfig.org
22
root = true
33

4-
# see Client and Server folders for
5-
# language unique editor configurations
6-
7-
# global baselines
4+
#### Core EditorConfig Options ####
85
[*]
9-
charset = utf-8
10-
end_of_line = lf
6+
charset = utf-8 # Use UTF-8 character encoding
7+
end_of_line = lf # Use LF line endings (Unix-style)
8+
insert_final_newline = true # Add empty line at end of files
9+
trim_trailing_whitespace = true # Remove whitespace at end of lines
10+
indent_style = space # Use spaces for indentation
11+
indent_size = 2 # Use 2 spaces per indentation level
12+
tab_width = 2 # Set tab width to 2 spaces
13+
14+
# Markdown files
15+
[*.md]
16+
trim_trailing_whitespace = false # Allow trailing whitespace for line breaks
17+
18+
# Batch and command files
19+
[*.{cmd,bat}]
20+
end_of_line = crlf # Use CRLF for Windows specific files
21+
22+
# .NET source files
23+
[*.{cs,vb}]
24+
indent_size = 4 # Use 4 spaces for .NET files
25+
tab_width = 4 # Set tab width to 4 spaces
26+
27+
dotnet_sort_system_directives_first = true # Place System.* usings before others
28+
dotnet_separate_import_directive_groups = false # Don't add blank lines between using directives
1129

12-
indent_style = space
13-
indent_size = 2
14-
tab_width = 2
30+
csharp_style_var_elsewhere = false # Use explicit types when type isn't obvious
31+
csharp_style_var_for_built_in_types = false # Use explicit types for built-in types
32+
csharp_style_var_when_type_is_apparent = false # Use explicit types even when obvious
1533

16-
line_length = 150
17-
max_line_length = 150
18-
trim_trailing_whitespace = true
19-
insert_final_newline = true
34+
# Expression-level preferences that differ from defaults
35+
csharp_style_expression_bodied_methods = true:silent # Allow expression-bodied methods
36+
csharp_style_expression_bodied_properties = true:silent # Allow expression-bodied properties
2037

21-
[*.{xml,yml}]
22-
indent_style = space
23-
indent_size = 2
38+
# Diagnostic overrides
39+
dotnet_diagnostic.IDE0058.severity = none # Disable "use '_' discard" value warnings

.vscode/extensions.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"recommendations": [
3+
"angular.ng-template",
4+
"azurite.azurite",
35
"ms-azuretools.vscode-azurefunctions",
4-
"ms-dotnettools.csharp"
6+
"ms-azuretools.vscode-azurestorage",
7+
"ms-dotnettools.csdevkit",
8+
"ms-vscode-remote.remote-containers"
59
]
6-
}
10+
}

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"azureFunctions.projectSubpath": "server\\Functions",
3-
"azureFunctions.deploySubpath": "server\\Functions/bin/Release/net8.0/publish",
3+
"azureFunctions.deploySubpath": "server\\Functions/bin/Release/net9.0/publish",
44
"azureFunctions.projectLanguage": "C#",
55
"azureFunctions.projectRuntime": "~4",
66
"debug.internalConsoleOptions": "neverOpen",

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"type": "func",
7272
"dependsOn": "build (functions)",
7373
"options": {
74-
"cwd": "${workspaceFolder}/server\\Functions/bin/Debug/net8.0"
74+
"cwd": "${workspaceFolder}/server\\Functions/bin/Debug/net9.0"
7575
},
7676
"command": "host start",
7777
"isBackground": true,

client/angular.json

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
"serve": {
7373
"builder": "@angular/build:dev-server",
7474
"defaultConfiguration": "development",
75+
"options": {
76+
"hmr": false
77+
},
7578
"configurations": {
7679
"development": {
7780
"buildTarget": "app:build:development"

0 commit comments

Comments
 (0)