Skip to content

Commit bf541da

Browse files
committed
fix(app): fix linter issues
1 parent 2ddca4f commit bf541da

28 files changed

+1134
-1973
lines changed

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export default tsEslint.config(
106106
'no-implicit-coercion': 'off',
107107
'no-ternary': 'off',
108108
'no-implicit-globals': 'off',
109+
'@angular-eslint/no-experimental': 'off',
110+
'@angular-eslint/no-developer-preview': 'off',
109111
'@angular-eslint/prefer-standalone': 'off',
110112
'@angular-eslint/prefer-standalone-component': 'off',
111113
'@angular-eslint/runtime-localize': 'off',
@@ -148,6 +150,7 @@ export default tsEslint.config(
148150
extends: [...angular.configs.templateAll],
149151
rules: {
150152
'@angular-eslint/template/no-call-expression': 'off',
153+
'@angular-eslint/template/prefer-template-literal': 'off',
151154
'@angular-eslint/template/i18n': [
152155
'error',
153156
{

package-lock.json

Lines changed: 1052 additions & 1894 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,56 +29,56 @@
2929
"@angular/platform-server": "20.3.7",
3030
"@angular/router": "20.3.7",
3131
"@angular/ssr": "20.3.7",
32-
"express": "4.18.2",
32+
"express": "^4.21.2",
3333
"ngx-progressbar": "14.0.0",
3434
"rxjs": "7.8.2",
3535
"tslib": "2.8.1"
3636
},
3737
"devDependencies": {
38-
"@angular-eslint/builder": "19.3.0",
39-
"@angular-eslint/eslint-plugin": "19.3.0",
40-
"@angular-eslint/eslint-plugin-template": "19.3.0",
41-
"@angular-eslint/schematics": "19.3.0",
42-
"@angular-eslint/template-parser": "19.3.0",
38+
"@angular-eslint/builder": "20.5.0",
39+
"@angular-eslint/eslint-plugin": "20.5.0",
40+
"@angular-eslint/eslint-plugin-template": "20.5.0",
41+
"@angular-eslint/schematics": "20.5.0",
42+
"@angular-eslint/template-parser": "20.5.0",
4343
"@angular/build": "20.3.7",
4444
"@angular/cli": "20.3.7",
4545
"@angular/compiler-cli": "20.3.7",
46-
"@commitlint/cli": "19.8.0",
47-
"@commitlint/config-conventional": "19.8.0",
48-
"@eslint/js": "9.23.0",
49-
"@ngrx/component": "19.1.0",
50-
"@playwright/test": "1.51.1",
46+
"@commitlint/cli": "20.1.0",
47+
"@commitlint/config-conventional": "20.0.0",
48+
"@eslint/js": "9.38.0",
49+
"@ngrx/component": "20.1.0",
50+
"@playwright/test": "1.56.1",
5151
"@shoelace-style/shoelace": "2.20.1",
5252
"@types/express": "4.17.17",
53-
"@types/node": "18.18.0",
54-
"@types/validator": "13.12.3",
55-
"@typescript-eslint/eslint-plugin": "8.29.0",
56-
"@typescript-eslint/parser": "8.29.0",
57-
"@typescript-eslint/types": "8.29.0",
58-
"@typescript-eslint/utils": "8.29.0",
53+
"@types/node": "24.9.2",
54+
"@types/validator": "13.15.4",
55+
"@typescript-eslint/eslint-plugin": "8.46.2",
56+
"@typescript-eslint/parser": "8.46.2",
57+
"@typescript-eslint/types": "8.46.2",
58+
"@typescript-eslint/utils": "8.46.2",
5959
"@vitest/coverage-v8": "4.0.4",
60-
"angular-eslint": "19.3.0",
61-
"eslint": "9.23.0",
62-
"eslint-config-prettier": "10.1.1",
60+
"angular-eslint": "20.5.0",
61+
"eslint": "9.38.0",
62+
"eslint-config-prettier": "10.1.8",
6363
"eslint-plugin-eslint-comments": "3.2.0",
64-
"eslint-plugin-prettier": "5.2.6",
64+
"eslint-plugin-prettier": "5.5.4",
6565
"eslint-plugin-promise": "7.2.1",
66-
"eslint-plugin-unicorn": "58.0.0",
66+
"eslint-plugin-unicorn": "62.0.0",
6767
"husky": "9.1.7",
6868
"jsdom": "27.0.1",
6969
"ng-extract-i18n-merge": "3.1.0",
7070
"normalize.css": "8.0.1",
71-
"playwright": "1.51.1",
71+
"playwright": "1.56.1",
7272
"postcss-scss": "4.0.9",
73-
"prettier": "3.5.3",
74-
"prettier-eslint": "16.3.0",
75-
"stylelint": "16.17.0",
76-
"stylelint-config-recess-order": "6.0.0",
77-
"stylelint-config-standard-scss": "14.0.0",
78-
"stylelint-order": "6.0.4",
79-
"ts-loader": "9.5.2",
80-
"typescript": "5.8.2",
81-
"typescript-eslint": "8.29.0",
73+
"prettier": "3.6.2",
74+
"prettier-eslint": "16.4.2",
75+
"stylelint": "16.25.0",
76+
"stylelint-config-recess-order": "7.4.0",
77+
"stylelint-config-standard-scss": "16.0.0",
78+
"stylelint-order": "7.0.0",
79+
"ts-loader": "9.5.4",
80+
"typescript": "5.9.3",
81+
"typescript-eslint": "8.46.2",
8282
"vitest": "4.0.4"
8383
},
8484
"private": true

src/app/app.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import type { Mock } from 'vitest';
1111
import { beforeEach, describe, expect, it, vi } from 'vitest';
1212

1313
@Component({
14-
changeDetection: ChangeDetectionStrategy.OnPush,
1514
selector: 'app-header',
1615
template: '',
16+
changeDetection: ChangeDetectionStrategy.OnPush,
1717
})
1818
class HeaderStubComponent {}
1919

src/app/app.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectionStrategy, Component, effect, inject, DOCUMENT } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, DOCUMENT, effect, inject } from '@angular/core';
22
import { translations } from '../locale/translations';
33
import { NavigationEnd, Router, RouterOutlet } from '@angular/router';
44
import { Meta, Title } from '@angular/platform-browser';
@@ -14,9 +14,6 @@ import { ToastStackComponent } from '~core/components/toast-stack/toast-stack.co
1414

1515
@Component({
1616
selector: 'app-root',
17-
templateUrl: './app.component.html',
18-
styleUrl: './app.component.scss',
19-
changeDetection: ChangeDetectionStrategy.OnPush,
2017
imports: [
2118
RouterOutlet,
2219
HeaderComponent,
@@ -25,6 +22,9 @@ import { ToastStackComponent } from '~core/components/toast-stack/toast-stack.co
2522
CookiePopupComponent,
2623
ToastStackComponent,
2724
],
25+
templateUrl: './app.component.html',
26+
styleUrl: './app.component.scss',
27+
changeDetection: ChangeDetectionStrategy.OnPush,
2828
})
2929
export class AppComponent {
3030
private readonly document = inject(DOCUMENT);

src/app/core/components/card/card.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { NgTemplateOutlet } from '@angular/common';
33

44
@Component({
55
selector: 'app-card',
6+
imports: [NgTemplateOutlet],
67
templateUrl: './card.component.html',
78
styleUrl: './card.component.scss',
89
changeDetection: ChangeDetectionStrategy.OnPush,
9-
imports: [NgTemplateOutlet],
1010
})
1111
export class CardComponent {
1212
readonly href = input<string>('');

src/app/core/components/error-404/error-404.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { NgOptimizedImage } from '@angular/common';
33

44
@Component({
55
selector: 'app-error-404',
6+
imports: [NgOptimizedImage],
67
templateUrl: './error-404.component.html',
78
styleUrl: 'error-404.component.scss',
89
changeDetection: ChangeDetectionStrategy.OnPush,
9-
imports: [NgOptimizedImage],
1010
})
1111
export class Error404Component {}

src/app/core/components/footer/footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
margin-top: auto;
55

66
.footer-container {
7-
container: footer / inline-size;
87
position: relative;
98
justify-content: center;
109
padding: var(--layout-padding);
1110
padding-inline-end: var(--spacing-r-xl);
11+
container: footer / inline-size;
1212
background-color: var(--page-background);
1313
transition: background-color 0.3s ease;
1414

src/app/core/components/header/header.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ import '@shoelace-style/shoelace/dist/components/dropdown/dropdown.js';
2424

2525
@Component({
2626
selector: 'app-header',
27-
templateUrl: './header.component.html',
28-
styleUrl: './header.component.scss',
29-
changeDetection: ChangeDetectionStrategy.OnPush,
3027
imports: [
3128
RouterLink,
3229
RouterLinkActive,
@@ -36,6 +33,9 @@ import '@shoelace-style/shoelace/dist/components/dropdown/dropdown.js';
3633
ThemeButtonComponent,
3734
PokemonSearchInputComponent,
3835
],
36+
templateUrl: './header.component.html',
37+
styleUrl: './header.component.scss',
38+
changeDetection: ChangeDetectionStrategy.OnPush,
3939
schemas: [CUSTOM_ELEMENTS_SCHEMA],
4040
})
4141
export class HeaderComponent {

src/app/core/components/language-selector/language-selector.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import '@shoelace-style/shoelace/dist/components/dropdown/dropdown.js';
1313

1414
@Component({
1515
selector: 'app-language-selector',
16+
imports: [UpperCasePipe],
1617
templateUrl: './language-selector.component.html',
1718
changeDetection: ChangeDetectionStrategy.OnPush,
18-
imports: [UpperCasePipe],
1919
schemas: [CUSTOM_ELEMENTS_SCHEMA],
2020
})
2121
export class LanguageSelectorComponent {

0 commit comments

Comments
 (0)