Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2b46ef

Browse files
committed
feat!: switch to angular v20
1 parent 2ff0e50 commit e2b46ef

27 files changed

+936
-408
lines changed

.nx/workflows/agents.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
launch-templates:
22
custom-linux-medium-plus-js:
33
resourceClass: 'docker_linux_amd64/medium+'
4-
image: 'ubuntu22.04-node20.11-v7'
4+
image: 'ubuntu22.04-node20.19-v2'
55
init-steps:
66
- name: checkout repo
77
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/checkout/main.yaml'

e2e/src/__snapshots__/eslint-8--inline-template-fixer.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ export class TestComponent {}
1717
1818
exports[`eslint-8--inline-template-fixer should generate the expected inline template fixer result 2`] = `
1919
{
20-
"@angular-devkit/build-angular": "^19.X.X",
2120
"@angular-eslint/builder": "0.0.0-e2e",
2221
"@angular-eslint/eslint-plugin": "0.0.0-e2e",
2322
"@angular-eslint/eslint-plugin-template": "0.0.0-e2e",
2423
"@angular-eslint/schematics": "0.0.0-e2e",
2524
"@angular-eslint/template-parser": "0.0.0-e2e",
26-
"@angular/cli": "^19.X.X",
27-
"@angular/compiler-cli": "^19.X.X",
25+
"@angular/build": "^20.X.X",
26+
"@angular/cli": "^20.X.X",
27+
"@angular/compiler-cli": "^20.X.X",
2828
"@types/jasmine": "~5.1.0",
2929
"@typescript-eslint/eslint-plugin": "7.11.0",
3030
"@typescript-eslint/parser": "7.11.0",
3131
"eslint": "8.57.1",
32-
"jasmine-core": "~5.6.0",
32+
"jasmine-core": "~5.7.0",
3333
"karma": "~6.4.0",
3434
"karma-chrome-launcher": "~3.2.0",
3535
"karma-coverage": "~2.2.0",

e2e/src/__snapshots__/eslint-8--new-workspace-create-application-false-ng-add-then-project.test.ts.snap

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

33
exports[`eslint-8--new-workspace-create-application-false-ng-add-then-project should pass linting when running ng-add before creating any projects 1`] = `
44
{
5-
"@angular-devkit/build-angular": "^19.X.X",
65
"@angular-eslint/builder": "0.0.0-e2e",
76
"@angular-eslint/eslint-plugin": "0.0.0-e2e",
87
"@angular-eslint/eslint-plugin-template": "0.0.0-e2e",
98
"@angular-eslint/schematics": "0.0.0-e2e",
109
"@angular-eslint/template-parser": "0.0.0-e2e",
11-
"@angular/cli": "^19.X.X",
12-
"@angular/compiler-cli": "^19.X.X",
10+
"@angular/build": "^20.X.X",
11+
"@angular/cli": "^20.X.X",
12+
"@angular/compiler-cli": "^20.X.X",
1313
"@types/jasmine": "~5.1.0",
1414
"@typescript-eslint/eslint-plugin": "7.11.0",
1515
"@typescript-eslint/parser": "7.11.0",
1616
"eslint": "8.57.1",
17-
"jasmine-core": "~5.6.0",
17+
"jasmine-core": "~5.7.0",
1818
"karma": "~6.4.0",
1919
"karma-chrome-launcher": "~3.2.0",
2020
"karma-coverage": "~2.2.0",

e2e/src/__snapshots__/eslint-8--new-workspace-create-application-false-project-then-ng-add.test.ts.snap

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

33
exports[`eslint-8--new-workspace-create-application-false-project-then-ng-add should pass linting when adding a project before running ng-add 1`] = `
44
{
5-
"@angular-devkit/build-angular": "^19.X.X",
65
"@angular-eslint/builder": "0.0.0-e2e",
76
"@angular-eslint/eslint-plugin": "0.0.0-e2e",
87
"@angular-eslint/eslint-plugin-template": "0.0.0-e2e",
98
"@angular-eslint/schematics": "0.0.0-e2e",
109
"@angular-eslint/template-parser": "0.0.0-e2e",
11-
"@angular/cli": "^19.X.X",
12-
"@angular/compiler-cli": "^19.X.X",
10+
"@angular/build": "^20.X.X",
11+
"@angular/cli": "^20.X.X",
12+
"@angular/compiler-cli": "^20.X.X",
1313
"@types/jasmine": "~5.1.0",
1414
"@typescript-eslint/eslint-plugin": "7.11.0",
1515
"@typescript-eslint/parser": "7.11.0",
1616
"eslint": "8.57.1",
17-
"jasmine-core": "~5.6.0",
17+
"jasmine-core": "~5.7.0",
1818
"karma": "~6.4.0",
1919
"karma-chrome-launcher": "~3.2.0",
2020
"karma-coverage": "~2.2.0",

e2e/src/__snapshots__/eslint-8--new-workspace.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
exports[`eslint-8--new-workspace should pass linting after creating a new workspace from scratch using angular-eslint 1`] = `
44
{
5-
"@angular-devkit/build-angular": "^19.X.X",
65
"@angular-eslint/builder": "0.0.0-e2e",
76
"@angular-eslint/eslint-plugin": "0.0.0-e2e",
87
"@angular-eslint/eslint-plugin-template": "0.0.0-e2e",
98
"@angular-eslint/schematics": "0.0.0-e2e",
109
"@angular-eslint/template-parser": "0.0.0-e2e",
11-
"@angular/cli": "^19.X.X",
12-
"@angular/compiler-cli": "^19.X.X",
10+
"@angular/build": "^20.X.X",
11+
"@angular/cli": "^20.X.X",
12+
"@angular/compiler-cli": "^20.X.X",
1313
"@types/jasmine": "~5.1.0",
1414
"@typescript-eslint/eslint-plugin": "7.11.0",
1515
"@typescript-eslint/parser": "7.11.0",
1616
"eslint": "8.57.1",
17-
"jasmine-core": "~5.6.0",
17+
"jasmine-core": "~5.7.0",
1818
"karma": "~6.4.0",
1919
"karma-chrome-launcher": "~3.2.0",
2020
"karma-coverage": "~2.2.0",
2121
"karma-jasmine": "~5.1.0",
2222
"karma-jasmine-html-reporter": "~2.1.0",
23-
"ng-packagr": "^19.X.X",
23+
"ng-packagr": "^20.X.X",
2424
"typescript": "~5.X.X"
2525
}
2626
`;

e2e/src/__snapshots__/inline-template-fixer.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ export class TestComponent {}
1717
1818
exports[`inline-template-fixer should generate the expected inline template fixer result 2`] = `
1919
{
20-
"@angular-devkit/build-angular": "^19.X.X",
21-
"@angular/cli": "^19.X.X",
22-
"@angular/compiler-cli": "^19.X.X",
20+
"@angular/build": "^20.X.X",
21+
"@angular/cli": "^20.X.X",
22+
"@angular/compiler-cli": "^20.X.X",
2323
"@types/jasmine": "~5.1.0",
2424
"angular-eslint": "0.0.0-e2e",
2525
"eslint": "^9.28.0",
26-
"jasmine-core": "~5.6.0",
26+
"jasmine-core": "~5.7.0",
2727
"karma": "~6.4.0",
2828
"karma-chrome-launcher": "~3.2.0",
2929
"karma-coverage": "~2.2.0",

e2e/src/__snapshots__/new-workspace-create-application-false-ng-add-then-project.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
exports[`new-workspace-create-application-false-ng-add-then-project should pass linting when running ng-add before creating any projects 1`] = `
44
{
5-
"@angular-devkit/build-angular": "^19.X.X",
6-
"@angular/cli": "^19.X.X",
7-
"@angular/compiler-cli": "^19.X.X",
5+
"@angular/build": "^20.X.X",
6+
"@angular/cli": "^20.X.X",
7+
"@angular/compiler-cli": "^20.X.X",
88
"@types/jasmine": "~5.1.0",
99
"angular-eslint": "0.0.0-e2e",
1010
"eslint": "^9.28.0",
11-
"jasmine-core": "~5.6.0",
11+
"jasmine-core": "~5.7.0",
1212
"karma": "~6.4.0",
1313
"karma-chrome-launcher": "~3.2.0",
1414
"karma-coverage": "~2.2.0",

e2e/src/__snapshots__/new-workspace-create-application-false-project-then-ng-add.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
exports[`new-workspace-create-application-false-project-then-ng-add should pass linting when adding a project before running ng-add 1`] = `
44
{
5-
"@angular-devkit/build-angular": "^19.X.X",
6-
"@angular/cli": "^19.X.X",
7-
"@angular/compiler-cli": "^19.X.X",
5+
"@angular/build": "^20.X.X",
6+
"@angular/cli": "^20.X.X",
7+
"@angular/compiler-cli": "^20.X.X",
88
"@types/jasmine": "~5.1.0",
99
"angular-eslint": "0.0.0-e2e",
1010
"eslint": "^9.28.0",
11-
"jasmine-core": "~5.6.0",
11+
"jasmine-core": "~5.7.0",
1212
"karma": "~6.4.0",
1313
"karma-chrome-launcher": "~3.2.0",
1414
"karma-coverage": "~2.2.0",

e2e/src/__snapshots__/new-workspace-type-module.test.ts.snap

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
exports[`new-workspace-type-module should pass linting after creating a new workspace from scratch using @angular-eslint 1`] = `
44
{
5-
"@angular-devkit/build-angular": "^19.X.X",
6-
"@angular/cli": "^19.X.X",
7-
"@angular/compiler-cli": "^19.X.X",
5+
"@angular/build": "^20.X.X",
6+
"@angular/cli": "^20.X.X",
7+
"@angular/compiler-cli": "^20.X.X",
88
"@types/jasmine": "~5.1.0",
99
"angular-eslint": "0.0.0-e2e",
1010
"eslint": "^9.28.0",
11-
"jasmine-core": "~5.6.0",
11+
"jasmine-core": "~5.7.0",
1212
"karma": "~6.4.0",
1313
"karma-chrome-launcher": "~3.2.0",
1414
"karma-coverage": "~2.2.0",
1515
"karma-jasmine": "~5.1.0",
1616
"karma-jasmine-html-reporter": "~2.1.0",
17-
"ng-packagr": "^19.X.X",
17+
"ng-packagr": "^20.X.X",
1818
"typescript": "~5.X.X",
1919
"typescript-eslint": "8.33.1"
2020
}
@@ -191,11 +191,6 @@ All files pass linting.
191191
192192
Linting \\"another-lib\\"...
193193
194-
__ROOT__//new-workspace-type-module/projects/another-lib/src/lib/another-lib.service.ts
195-
8:17 error Unexpected empty constructor @typescript-eslint/no-empty-function
196-
197-
✖ 1 problem (1 error, 0 warnings)
198-
199-
Lint errors found in the listed files.
194+
All files pass linting.
200195
"
201196
`;

e2e/src/__snapshots__/new-workspace-typescript-config.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ All files pass linting.
1111
exports[`new-workspace with TypeScript config should show an error when linting using a TypeScript config before the user installs jiti 1`] = `
1212
"
1313
Linting \\"new-workspace-typescript-config\\"...
14-
Error when running ESLint: You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features."
14+
Error when running ESLint: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it."
1515
`;

0 commit comments

Comments
 (0)