Skip to content

Commit 7fd1486

Browse files
committed
Upgrading to Angular 20:
Replaced checked in package-lock.json by regenerated one. Ran ng update @angular/core@20 @angular/cli@20 Ran npm install @angular-builders/jest@^20.0.0 @fortawesome/angular-fontawesome@^3.0.0 @swimlane/ngx-graph@^11 Ran npm install ngx-mat-select-search@^8.0.2. Ran ng update @angular/material@20. Updated all eslint and typescript to the latest versions. Removed @angular-devkit/schematics. Updated fontawesome. Updated rxjs and tslib. Moved required node version from 16 to 20. Updated jest-preset-angular. Set preserveWhitespaces to false. Corrected two type declarations in two typescript files to make ng serve run without errors. Removed unused angular-devkit/schematics from view-user.component.ts . Updated list of supported browsers. Upgraded prettier. Ran prettier . --write the first time. Ran prettier . --write the second time. Ran ng generate @angular/core:inject with defaults, excepted a handful of files. Fixed remaining eslint problems. Added dist directory to ignores in eslint.config.js. Let prettier fix formatting, almost everything is just line breaks. Made htmlhint ignore @if and @for Angular constructs. Updated node version in Github workflow to 22.12.0 (build.yml). Updated .env.ts. Updated Angular datetime format strings from YYYY-MM-DD to yyyy-MM-dd. Merged changes from dev into angular20 branch.
1 parent f1b4ec2 commit 7fd1486

File tree

1,516 files changed

+52389
-49059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,516 files changed

+52389
-49059
lines changed

.browserslistrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ last 2 versions
66
> 0.5%
77
Firefox ESR
88
not dead
9+
not and_qq 14.9
10+
not and_uc 15.5
11+
not android 142
912
not kaios 2.5
13+
not kaios 3.0-3.1
1014
not op_mini all
15+
not op_mob 80
16+
not opera 122
17+
not opera 121
18+
not samsung 28
19+
not samsung 29
20+
not samsung 27
1121
# For IE 9-11 support, please uncomment the next line and adjust as needed
1222
# IE 9-11

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# no support for lts as of now with github actions.
2828
# issue link : https://github.com/actions/setup-node/issues/26
2929
# lts/gallium node v19.7.0 (npm v9.5.0)
30-
node-version: '22.9.0'
30+
node-version: '22.12.0'
3131

3232
- name: Remove node_modules
3333
run: rm -rf node_modules

.htmlhintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"attr-lowercase": false,
44
"attr-value-double-quotes": true,
55
"tag-pair": true,
6-
"spec-char-escape": true,
6+
"spec-char-escape": false,
77
"id-unique": true,
88
"src-not-empty": true,
99
"attr-no-duplication": true,

angular.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,30 @@
231231
},
232232
"@angular-eslint/schematics:library": {
233233
"setParserOptionsProject": true
234+
},
235+
"@schematics/angular:component": {
236+
"type": "component"
237+
},
238+
"@schematics/angular:directive": {
239+
"type": "directive"
240+
},
241+
"@schematics/angular:service": {
242+
"type": "service"
243+
},
244+
"@schematics/angular:guard": {
245+
"typeSeparator": "."
246+
},
247+
"@schematics/angular:interceptor": {
248+
"typeSeparator": "."
249+
},
250+
"@schematics/angular:module": {
251+
"typeSeparator": "."
252+
},
253+
"@schematics/angular:pipe": {
254+
"typeSeparator": "."
255+
},
256+
"@schematics/angular:resolver": {
257+
"typeSeparator": "."
234258
}
235259
}
236260
}

eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ const tsParser = require('@typescript-eslint/parser');
77

88
module.exports = [
99
{
10-
ignores: ['projects/**/*']
10+
ignores: [
11+
'projects/**/*',
12+
'dist/**/*'
13+
]
1114
},
1215

1316
// TS files configuration

0 commit comments

Comments
 (0)