Skip to content

Commit f0abc3e

Browse files
committed
feat: migrate to nx 19 and angular 18
1 parent 7cc1d2d commit f0abc3e

File tree

10 files changed

+4437
-2948
lines changed

10 files changed

+4437
-2948
lines changed

.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@
3030
{
3131
"files": ["*.ts", "*.tsx"],
3232
"extends": ["plugin:@nx/typescript"],
33-
"rules": {}
33+
"rules": {
34+
"@typescript-eslint/no-extra-semi": "error",
35+
"no-extra-semi": "off"
36+
}
3437
},
3538
{
3639
"files": ["*.js", "*.jsx"],
3740
"extends": ["plugin:@nx/javascript"],
38-
"rules": {}
41+
"rules": {
42+
"@typescript-eslint/no-extra-semi": "error",
43+
"no-extra-semi": "off"
44+
}
3945
},
4046
{
4147
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { HttpClientModule } from '@angular/common/http';
2-
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
1+
import { provideHttpClient } from '@angular/common/http';
2+
import { ApplicationConfig } from '@angular/core';
3+
34
export const appConfig: ApplicationConfig = {
4-
providers: [importProvidersFrom(HttpClientModule)],
5+
providers: [provideHttpClient()],
56
};

apps/rxjs/14-race-condition/src/styles.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

55
@include mat.core();
66

7-
$theme-primary: mat.define-palette(mat.$indigo-palette);
8-
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
7+
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
8+
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
99

10-
$theme-warn: mat.define-palette(mat.$red-palette);
10+
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
1111

12-
$theme: mat.define-light-theme(
12+
$theme: mat.m2-define-light-theme(
1313
(
1414
color: (
1515
primary: $theme-primary,
1616
accent: $theme-accent,
1717
warn: $theme-warn,
1818
),
19-
typography: mat.define-typography-config(),
19+
typography: mat.m2-define-typography-config(),
2020
)
2121
);
2222

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { HttpClientModule } from '@angular/common/http';
2-
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
1+
import { provideHttpClient } from '@angular/common/http';
2+
import { ApplicationConfig } from '@angular/core';
33

44
export const appConfig: ApplicationConfig = {
5-
providers: [importProvidersFrom(HttpClientModule)],
5+
providers: [provideHttpClient()],
66
};

apps/testing/23-harness/src/styles.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88

99
@include mat.core();
1010

11-
$theme-primary: mat.define-palette(mat.$indigo-palette);
12-
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
11+
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
12+
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
1313

14-
$theme-warn: mat.define-palette(mat.$red-palette);
14+
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
1515

16-
$theme: mat.define-light-theme(
16+
$theme: mat.m2-define-light-theme(
1717
(
1818
color: (
1919
primary: $theme-primary,
2020
accent: $theme-accent,
2121
warn: $theme-warn,
2222
),
23-
typography: mat.define-typography-config(),
23+
typography: mat.m2-define-typography-config(),
2424
)
2525
);
2626

apps/testing/24-harness-creation/src/styles.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99

1010
@include mat.core();
1111

12-
$theme-primary: mat.define-palette(mat.$indigo-palette);
13-
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
12+
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
13+
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
1414

15-
$theme-warn: mat.define-palette(mat.$red-palette);
15+
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
1616

17-
$theme: mat.define-light-theme(
17+
$theme: mat.m2-define-light-theme(
1818
(
1919
color: (
2020
primary: $theme-primary,
2121
accent: $theme-accent,
2222
warn: $theme-warn,
2323
),
24-
typography: mat.define-typography-config(),
24+
typography: mat.m2-define-typography-config(),
2525
)
2626
);
2727

libs/decoupling/.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@
3838
{
3939
"files": ["*.ts", "*.tsx"],
4040
"extends": ["plugin:@nx/typescript"],
41-
"rules": {}
41+
"rules": {
42+
"@typescript-eslint/no-extra-semi": "error",
43+
"no-extra-semi": "off"
44+
}
4245
},
4346
{
4447
"files": ["*.js", "*.jsx"],
4548
"extends": ["plugin:@nx/javascript"],
46-
"rules": {}
49+
"rules": {
50+
"@typescript-eslint/no-extra-semi": "error",
51+
"no-extra-semi": "off"
52+
}
4753
},
4854
{
4955
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],

migrations.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)