Skip to content

Commit

Permalink
Update dependencies and configuration files (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
myty authored Dec 23, 2023
1 parent 26b7b60 commit b1feae9
Show file tree
Hide file tree
Showing 82 changed files with 4,918 additions and 5,201 deletions.
30 changes: 13 additions & 17 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.21.0",
"commands": [
"dotnet-csharpier"
]
},
"dotnet-outdated-tool": {
"version": "4.3.2",
"commands": [
"dotnet-outdated"
]
}
}
}
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.26.7",
"commands": ["dotnet-csharpier"]
},
"dotnet-outdated-tool": {
"version": "4.6.0",
"commands": ["dotnet-outdated"]
}
}
}
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

[*.yml]
indent_size = 2
[*.cs]
indent_size = 4
6 changes: 3 additions & 3 deletions .github/workflows/production-lanco-incidents-func.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ on:
env:
AZURE_FUNCTIONAPP_NAME: lanco-incidents-func
AZURE_FUNCTIONAPP_PACKAGE_PATH: "src/lanco-incidents-func"
DOTNET_VERSION: "7.0.x"
DOTNET_VERSION: "8.0.x"

jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
auto-install-peers=true
strict-peer-dependencies=false
use-node-version=16.18.1
use-node-version=20.10.0
7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

11 changes: 0 additions & 11 deletions .prettierrc.json

This file was deleted.

42 changes: 32 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,52 @@
"editor.defaultFormatter": "csharpier.csharpier-vscode",
"editor.formatOnSave": true
},
"azureFunctions.deploySubpath": "src/lanco-incidents-func/bin/Release/net7.0/publish",
"azureFunctions.deploySubpath": "src/lanco-incidents-func/bin/Release/net8.0/publish",
"azureFunctions.preDeployTask": "publish (functions)",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~4",
"azureFunctions.projectSubpath": "src/lanco-incidents-func",
"debug.internalConsoleOptions": "neverOpen",
"eslint.workingDirectories": [
{
"changeProcessCWD": true,
"directory": "src/lanco-incidents-app"
}
],
"files.exclude": {
"**/dist/**": true,
"**/node_modules/**": true,
"**/tsconfig.tsbuildinfo": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
}
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
}
},
"[typescript]": {
"editor.defaultFormatter": "rome.rome"
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
}
},
"[javascript]": {
"editor.defaultFormatter": "rome.rome"
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
}
},
"dotnet-test-explorer.autoWatch": true,
"dotnet-test-explorer.testProjectPath": "**/*Tests.@(csproj|vbproj|fsproj)",
"typescript.tsdk": "node_modules\\typescript\\lib"
"typescript.tsdk": "node_modules\\typescript\\lib",
"[javascript][javascriptreact][typescript][typescriptreact]": {
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
}
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
"type": "func",
"dependsOn": "build (functions)",
"options": {
"cwd": "${workspaceFolder}/src/lanco-incidents-func/bin/Debug/net7.0"
"cwd": "${workspaceFolder}/src/lanco-incidents-func/bin/Debug/net8.0"
},
"command": "host start",
"isBackground": true,
"problemMatcher": "$func-dotnet-watch"
}
]
}
}
29 changes: 29 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"vcs": {
"clientKind": "git",
"useIgnoreFile": true
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120
},
"javascript": {
"formatter": {
"semicolons": "always",
"trailingComma": "es5",
"arrowParentheses": "asNeeded",
"bracketSameLine": true
}
}
}
10 changes: 5 additions & 5 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.100",
"rollForward": "latestPatch"
}
}
"sdk": {
"version": "8.0.100",
"rollForward": "latestPatch"
}
}
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@
"license": "MIT",
"scripts": {
"build": "turbo run build",
"serve": "turbo run serve",
"serve": "turbo run serve azurite",
"test": "turbo run test",
"lint": "turbo run lint",
"dev": "turbo run dev",
"dev": "turbo run dev azurite",
"install-all": "pnpm install -r && dotnet tool restore && husky install && dotnet husky install && pnpm --filter=lanco-incidents-func restore",
"update-all": "pnpm up -r && dotnet tool update dotnet-outdated-tool && dotnet tool update csharpier && cd ./src/lanco-incidents-func && dotnet outdated -u"
},
"devDependencies": {
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"turbo": "^1.6.3",
"typescript": "~4.9.4"
"@biomejs/biome": "1.4.1",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"turbo": "^1.11.2",
"typescript": "~5.3.3"
},
"overrides": {
"typescript": "$typescript"
},
"volta": {
"node": "16.18.1"
"node": "20.10.0",
"pnpm": "8.12.1"
}
}
}
Loading

0 comments on commit b1feae9

Please sign in to comment.