[ACS-8956] Introduce new ESLint rule for self-closing tags (#10354)

This commit is contained in:
MichalKinas
2024-11-04 10:58:24 +01:00
committed by GitHub
parent 3f1b88a62c
commit f07636e297
247 changed files with 710 additions and 1359 deletions

View File

@@ -24,7 +24,7 @@ import { FlagsComponent } from './flags/flags.component';
imports: [FlagsComponent],
template: `
<div class="adf-feature-flags-wrapper">
<adf-feature-flags-overrides></adf-feature-flags-overrides>
<adf-feature-flags-overrides />
</div>
`,
styles: [

View File

@@ -2,14 +2,12 @@
<div class="adf-feature-flags-overrides-header-text" tabindex="0">
<adf-feature-flags-override-indicator
class="adf-activity-indicator"
size='large'>
</adf-feature-flags-override-indicator>
size='large' />
<span>{{ "CORE.FEATURE-FLAGS.OVERRIDES" | translate }}</span>
</div>
<mat-slide-toggle
[checked]="isEnabled"
(change)="onEnable($event.checked)">
</mat-slide-toggle>
(change)="onEnable($event.checked)" />
<button
class="adf-feature-flags-overrides-header-close"
mat-icon-button
@@ -26,8 +24,8 @@
</th>
<td mat-cell class="adf-icon-col" *matCellDef="let element">
<button mat-icon-button *ngIf="element.fictive; else flagFromApi" class="adf-fictive-flag-button" (click)="onDelete(element.flag)">
<mat-icon class="material-icons-outlined adf-custom-flag-icon" fontIcon="memory"></mat-icon>
<mat-icon class="material-icons-outlined adf-trash-icon" fontIcon="delete"></mat-icon>
<mat-icon class="material-icons-outlined adf-custom-flag-icon" fontIcon="memory" />
<mat-icon class="material-icons-outlined adf-trash-icon" fontIcon="delete" />
</button>
</td>
</ng-container>
@@ -45,7 +43,7 @@
<th mat-header-cell class="adf-val-col header-cell" *matHeaderCellDef>
<div class="adf-input-field-buttons-container">
<button *ngIf="showPlusButton$ | async" mat-icon-button title="{{'CORE.FEATURE-FLAGS.ADD_NEW' | translate}}" color="accent" (click)="onAddButtonClick()">
<mat-icon class="material-icons-outlined" fontIcon="add_circle"></mat-icon>
<mat-icon class="material-icons-outlined" fontIcon="add_circle" />
</button>
<button *ngIf="inputValue" matSuffix mat-icon-button aria-label="Clear" (click)="onClearInput()" class="adf-clear-button">
<mat-icon>cancel</mat-icon>
@@ -56,8 +54,7 @@
<mat-slide-toggle
[checked]="element.value"
(change)="onChange(element.flag, $event.checked)"
[disabled]="!isEnabled">
</mat-slide-toggle>
[disabled]="!isEnabled" />
</td>
</ng-container>