Skip to content

Commit d701445

Browse files
chore(deps): update again to angular v18 using ng update and run the automatic migration
Adapt backend to esModuleInterop true set by the migration
1 parent 5846e67 commit d701445

File tree

11 files changed

+2638
-2040
lines changed

11 files changed

+2638
-2040
lines changed

angular.json

+7-18
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
2020
"outputPath": "dist/public",
2121
"index": "client/index.html",
22-
"main": "client/main.ts",
22+
"browser": "client/main.ts",
2323
"polyfills": [
2424
"zone.js"
2525
],
@@ -42,13 +42,13 @@
4242
"budgets": [
4343
{
4444
"type": "initial",
45-
"maximumWarning": "750kb",
46-
"maximumError": "1mb"
45+
"maximumWarning": "750kB",
46+
"maximumError": "1MB"
4747
},
4848
{
4949
"type": "anyComponentStyle",
50-
"maximumWarning": "2kb",
51-
"maximumError": "4kb"
50+
"maximumWarning": "2kB",
51+
"maximumError": "4kB"
5252
}
5353
],
5454
"outputHashing": "all"
@@ -75,10 +75,7 @@
7575
"defaultConfiguration": "development"
7676
},
7777
"extract-i18n": {
78-
"builder": "@angular-devkit/build-angular:extract-i18n",
79-
"options": {
80-
"buildTarget": "angular2-full-stack:build"
81-
}
78+
"builder": "@angular-devkit/build-angular:extract-i18n"
8279
},
8380
"test": {
8481
"builder": "@angular-devkit/build-angular:karma",
@@ -119,13 +116,5 @@
119116
"schematicCollections": [
120117
"@angular-eslint/schematics"
121118
]
122-
},
123-
"schematics": {
124-
"@angular-eslint/schematics:application": {
125-
"setParserOptionsProject": true
126-
},
127-
"@angular-eslint/schematics:library": {
128-
"setParserOptionsProject": true
129-
}
130119
}
131120
}

client/app/shared/shared.module.ts

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4-
import { HttpClientModule } from '@angular/common/http';
4+
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
55

66
import { ToastComponent } from './toast/toast.component';
77
import { LoadingComponent } from './loading/loading.component';
88

99
@NgModule({
10-
imports: [
11-
BrowserModule,
12-
FormsModule,
13-
ReactiveFormsModule,
14-
HttpClientModule
15-
],
1610
exports: [
1711
// Shared Modules
1812
BrowserModule,
1913
FormsModule,
2014
ReactiveFormsModule,
21-
HttpClientModule,
2215
// Shared Components
2316
ToastComponent,
24-
LoadingComponent
17+
LoadingComponent,
2518
],
2619
declarations: [
2720
ToastComponent,
2821
LoadingComponent
2922
],
23+
imports: [
24+
BrowserModule,
25+
FormsModule,
26+
ReactiveFormsModule
27+
],
3028
providers: [
31-
ToastComponent
32-
]
29+
ToastComponent,
30+
provideHttpClient(withInterceptorsFromDi())
31+
],
3332
})
34-
export class SharedModule { }
33+
export class SharedModule {}

eslint.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ module.exports = tseslint.config(
3030
style: "kebab-case",
3131
},
3232
],
33-
3433
"@typescript-eslint/no-explicit-any": "off",
3534
"no-underscore-dangle": "off",
3635
"arrow-spacing": "error",

0 commit comments

Comments
 (0)