Skip to content

Commit db12ae7

Browse files
committed
Update node+angular deps
- node to the most recent LTS version - angular dependencies to 22.x rather than 21.x - eslint to 10.7 (the old version was quite old) Deployed to alpha and everything looks all right. The Typescript changes were all done by the migration (nothing manually). G.1 numbers 8 and 9
1 parent c2bd11c commit db12ae7

56 files changed

Lines changed: 3708 additions & 4177 deletions

File tree

Some content is hidden

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

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencyLocking {
6060

6161
node {
6262
download = false
63-
version = "22.7.0"
63+
version = "24.18.0"
6464
}
6565

6666
wrapper {

console-webapp/.eslintrc.json

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

console-webapp/angular.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,11 @@
2222
"browser": ""
2323
},
2424
"index": "src/index.html",
25-
"polyfills": [
26-
"src/polyfills.ts"
27-
],
25+
"polyfills": ["src/polyfills.ts"],
2826
"tsConfig": "tsconfig.app.json",
2927
"inlineStyleLanguage": "scss",
30-
"assets": [
31-
"src/favicon.ico",
32-
"src/assets"
33-
],
34-
"styles": [
35-
"src/theme.scss",
36-
"src/styles.scss"
37-
],
28+
"assets": ["src/favicon.ico", "src/assets"],
29+
"styles": ["src/theme.scss", "src/styles.scss"],
3830
"stylePreprocessorOptions": {
3931
"includePaths": ["node_modules/"]
4032
},
@@ -106,7 +98,12 @@
10698
"optimization": false,
10799
"extractLicenses": false,
108100
"sourceMap": true,
109-
"namedChunks": true,
101+
"namedChunks": true
102+
},
103+
"testing": {
104+
"aot": false,
105+
"optimization": false,
106+
"extractLicenses": false
110107
}
111108
},
112109
"defaultConfiguration": "production"
@@ -145,20 +142,12 @@
145142
"builder": "@angular/build:karma",
146143
"options": {
147144
"main": "src/test.ts",
148-
"polyfills": [
149-
"src/polyfills.ts"
150-
],
145+
"polyfills": ["src/polyfills.ts"],
151146
"tsConfig": "tsconfig.spec.json",
152147
"karmaConfig": "karma.conf.js",
153148
"inlineStyleLanguage": "scss",
154-
"assets": [
155-
"src/favicon.ico",
156-
"src/assets"
157-
],
158-
"styles": [
159-
"src/theme.scss",
160-
"src/styles.scss"
161-
],
149+
"assets": ["src/favicon.ico", "src/assets"],
150+
"styles": ["src/theme.scss", "src/styles.scss"],
162151
"stylePreprocessorOptions": {
163152
"includePaths": ["node_modules/"]
164153
},
@@ -168,10 +157,7 @@
168157
"lint": {
169158
"builder": "@angular-eslint/builder:lint",
170159
"options": {
171-
"lintFilePatterns": [
172-
"src/**/*.ts",
173-
"src/**/*.html"
174-
]
160+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
175161
}
176162
}
177163
}
@@ -182,9 +168,7 @@
182168
"enabled": false
183169
},
184170
"analytics": false,
185-
"schematicCollections": [
186-
"@angular-eslint/schematics"
187-
]
171+
"schematicCollections": ["@angular-eslint/schematics"]
188172
},
189173
"schematics": {
190174
"@schematics/angular:component": {

console-webapp/eslint.config.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Copyright 2026 The Nomulus Authors. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
const eslint = require("@eslint/js");
16+
const tseslint = require("typescript-eslint");
17+
const angular = require("angular-eslint");
18+
19+
module.exports = tseslint.config(
20+
{
21+
ignores: ["projects/**/*", "dist/**/*", "staged/**/*", "coverage/**/*"],
22+
},
23+
{
24+
files: ["**/*.ts"],
25+
extends: [
26+
eslint.configs.recommended,
27+
...tseslint.configs.recommended,
28+
...angular.configs.tsRecommended,
29+
],
30+
processor: angular.processInlineTemplates,
31+
rules: {
32+
"@angular-eslint/directive-selector": "off",
33+
"@angular-eslint/component-selector": "off",
34+
"eol-last": ["error", "always"],
35+
"@typescript-eslint/no-unused-vars": "off",
36+
"@typescript-eslint/no-explicit-any": "off",
37+
"@typescript-eslint/no-wrapper-object-types": "off",
38+
"@typescript-eslint/no-unsafe-function-type": "off",
39+
"@typescript-eslint/ban-ts-comment": "off",
40+
"@typescript-eslint/no-unused-expressions": "off",
41+
"@angular-eslint/prefer-on-push-component-change-detection": "off",
42+
"@angular-eslint/prefer-inject": "off",
43+
"@angular-eslint/prefer-standalone": "off",
44+
"@angular-eslint/no-output-on-prefix": "off",
45+
"no-var": "off",
46+
"prefer-const": "off",
47+
},
48+
},
49+
{
50+
files: ["**/*.html"],
51+
extends: [
52+
...angular.configs.templateRecommended,
53+
...angular.configs.templateAccessibility,
54+
],
55+
rules: {
56+
"@angular-eslint/template/eqeqeq": "off",
57+
},
58+
}
59+
);

0 commit comments

Comments
 (0)