diff --git a/.eslintrc.json b/.eslintrc.json index 1cce03ac..8cbb1d32 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -49,6 +49,13 @@ "style": "kebab-case" } ], + "@angular-eslint/prefer-on-push-component-change-detection": ["off"], + "@angular-eslint/prefer-output-readonly": ["error"], + "@angular-eslint/prefer-standalone": ["warn"], + "@angular-eslint/relative-url-prefix": ["error"], + "@angular-eslint/use-component-view-encapsulation": ["error"], + "@angular-eslint/use-injectable-provided-in": ["error"], + "@angular-eslint/use-lifecycle-interface": ["error"], "@typescript-eslint/no-explicit-any": ["off"], "@typescript-eslint/no-unused-vars": [ "warn", @@ -106,7 +113,23 @@ "extends": [ "plugin:@angular-eslint/template/recommended" ], - "rules": {} + "rules": { + "@angular-eslint/template/alt-text": ["error"], + "@angular-eslint/template/button-has-type": ["error"], + "@angular-eslint/template/click-events-have-key-events": ["error"], + "@angular-eslint/template/elements-content": ["error"], + "@angular-eslint/template/interactive-supports-focus": ["error"], + "@angular-eslint/template/label-has-associated-control": ["error"], + "@angular-eslint/template/mouse-events-have-key-events": ["error"], + "@angular-eslint/template/no-any": ["error"], + "@angular-eslint/template/no-distracting-elements": ["error"], + "@angular-eslint/template/prefer-control-flow": ["error"], + "@angular-eslint/template/prefer-ngsrc": ["error"], + "@angular-eslint/template/prefer-self-closing-tags": ["error"], + "@angular-eslint/template/role-has-required-aria": ["error"], + "@angular-eslint/template/table-scope": ["error"], + "@angular-eslint/template/valid-aria": ["error"] + } }, { "files": [ diff --git a/src/app/app.component.html b/src/app/app.component.html index 5f1a60ac..082586e2 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,5 +1,5 @@
- +
diff --git a/src/app/common/breadcrumb/breadcrumb.component.ts b/src/app/common/breadcrumb/breadcrumb.component.ts index a1c320af..81e341a4 100644 --- a/src/app/common/breadcrumb/breadcrumb.component.ts +++ b/src/app/common/breadcrumb/breadcrumb.component.ts @@ -9,8 +9,8 @@ import { Breadcrumb, BreadcrumbService } from './breadcrumb.service'; @Component({ selector: 'breadcrumb', - templateUrl: 'breadcrumb.component.html', - styleUrls: ['breadcrumb.component.scss'], + templateUrl: './breadcrumb.component.html', + styleUrls: ['./breadcrumb.component.scss'], standalone: true, imports: [RouterLink] }) diff --git a/src/app/common/dialog/bs-dialog-container/bs-dialog-container.component.html b/src/app/common/dialog/bs-dialog-container/bs-dialog-container.component.html index 77131635..affee68c 100644 --- a/src/app/common/dialog/bs-dialog-container/bs-dialog-container.component.html +++ b/src/app/common/dialog/bs-dialog-container/bs-dialog-container.component.html @@ -1,5 +1,5 @@ diff --git a/src/app/common/dialog/configurable-dialog/configurable-dialog.component.html b/src/app/common/dialog/configurable-dialog/configurable-dialog.component.html index 4d8b8bc3..0f88a670 100644 --- a/src/app/common/dialog/configurable-dialog/configurable-dialog.component.html +++ b/src/app/common/dialog/configurable-dialog/configurable-dialog.component.html @@ -13,10 +13,13 @@
@for (input of data.inputs; track input; let isFirst = $first) {
- + @if (input.type === 'textarea') {