Commit b1f17ec5 authored by Girija Saint-Ange's avatar Girija Saint-Ange
Browse files

feat: upgrade to angular v20

parent 31203ae1
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -5,8 +5,17 @@
# You can see what browsers were selected by your queries by running:
#   npx browserslist

> 0.5%
last 2 versions
# Angular 20 supported browsers
last 2 Chrome versions
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
 No newline at end of file
not IE 9-11
not OperaMini all
not KaiOS 2.5
not and_qq < 15
not and_uc < 16
not op_mob < 81
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ include:
  # Angular template
  - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/angular/gitlab-ci-angular@4
    inputs:
      cli-image: "docker.io/trion/ng-cli-karma:18.0.0"
      cli-image: "docker.io/trion/ng-cli-karma:20.0.0"
      build-args: "build --configuration production"
      lint-args: "version"
  # Playwright template

eslint.config.js

0 → 100644
+47 −0
Original line number Diff line number Diff line
// @ts-check
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
const angular = require('angular-eslint');

module.exports = tseslint.config(
  {
    files: ['**/*.ts'],
    extends: [
      eslint.configs.recommended,
      ...tseslint.configs.recommended,
      ...tseslint.configs.stylistic,
      ...angular.configs.tsRecommended,
    ],
    processor: angular.processInlineTemplates,
    rules: {
      '@angular-eslint/directive-selector': [
        'error',
        {
          type: 'attribute',
          prefix: 'app',
          style: 'camelCase',
        },
      ],
      '@angular-eslint/component-selector': [
        'error',
        {
          type: 'element',
          prefix: 'app',
          style: 'kebab-case',
        },
      ],
      // Relax some rules for legacy code migration
      '@typescript-eslint/no-explicit-any': 'warn',
      '@angular-eslint/prefer-inject': 'warn',
      '@typescript-eslint/no-unused-vars': 'warn',
    },
  },
  {
    files: ['**/*.html'],
    extends: [
      ...angular.configs.templateRecommended,
      ...angular.configs.templateAccessibility,
    ],
    rules: {},
  }
);
+11922 −8513

File changed.

Preview size limit exceeded, changes collapsed.

+44 −39
Original line number Diff line number Diff line
@@ -4,37 +4,42 @@
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
        "build": "ng build"
    "build": "ng build",
    "lint": "ng lint"
  },
  "private": true,
  "dependencies": {
        "@angular/animations": "18.1.0",
        "@angular/common": "18.1.0",
        "@angular/compiler": "18.1.0",
        "@angular/core": "18.1.0",
        "@angular/forms": "18.1.0",
        "@angular/localize": "18.1.0",
        "@angular/platform-browser": "18.1.0",
        "@angular/platform-browser-dynamic": "18.1.0",
        "@angular/router": "18.1.0",
        "@ng-bootstrap/ng-bootstrap": "17.0.1",
    "@angular/animations": "20.0.6",
    "@angular/common": "20.0.6",
    "@angular/compiler": "20.0.6",
    "@angular/core": "20.0.6",
    "@angular/forms": "20.0.6",
    "@angular/localize": "20.0.6",
    "@angular/platform-browser": "20.0.6",
    "@angular/platform-browser-dynamic": "20.0.6",
    "@angular/router": "20.0.6",
    "@ng-bootstrap/ng-bootstrap": "19.0.1",
    "@popperjs/core": "^2.11.8",
    "boosted": "5.3.3",
        "marked": "^12.0.0",
    "marked": "^15.0.0",
    "ng-process-env": "^16.0.6",
        "ngx-markdown": "^18.0.0",
    "ngx-markdown": "20.0.0",
    "rxjs": "7.8.2",
    "tslib": "^2.3.0",
        "zone.js": "0.14.8"
    "zone.js": "0.15.0"
  },
  "devDependencies": {
        "@angular/build": "^18.1.0",
        "@angular/cli": "18.2.20",
        "@angular/compiler-cli": "18.1.0",
        "@angular/language-service": "18.1.0",
    "@angular/build": "20.0.6",
    "@angular/cli": "20.0.6",
    "@angular/compiler-cli": "20.0.6",
    "@angular/language-service": "20.0.6",
    "@biomejs/biome": "1.9.4",
    "@playwright/test": "^1.45.2",
    "@types/node": "22.13.6",
    "angular-eslint": "20.1.1",
    "eslint": "^9.29.0",
    "ts-node": "10.9.2",
        "typescript": "^5.4.5"
    "typescript": "5.8.3",
    "typescript-eslint": "8.34.1"
  }
}
 No newline at end of file
Loading