This is an automated email from the ASF dual-hosted git repository.
ferenc-csaky pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 7045ec893fa [hotfix] Fix missing eslint enforcement under `runtime-web`
7045ec893fa is described below
commit 7045ec893fafb3d473af95376d5f7a23cd1579a0
Author: Purushottam Sinha <[email protected]>
AuthorDate: Sat May 16 12:13:59 2026 +0530
[hotfix] Fix missing eslint enforcement under `runtime-web`
---
flink-runtime-web/web-dashboard/.eslintignore | 6 ++--
.../job-manager/logs/job-manager-logs.component.ts | 32 +++++++++----------
.../logs/task-manager-logs.component.ts | 36 ++++++++++------------
3 files changed, 35 insertions(+), 39 deletions(-)
diff --git a/flink-runtime-web/web-dashboard/.eslintignore
b/flink-runtime-web/web-dashboard/.eslintignore
index 8a6dedf3558..aa93ecd4c68 100644
--- a/flink-runtime-web/web-dashboard/.eslintignore
+++ b/flink-runtime-web/web-dashboard/.eslintignore
@@ -1,11 +1,11 @@
.idea
gen
web
-tsc-out
-dist
+/tsc-out
+/dist
# Logs
-logs
+/logs
*.log
npm-debug.log*
diff --git
a/flink-runtime-web/web-dashboard/src/app/pages/job-manager/logs/job-manager-logs.component.ts
b/flink-runtime-web/web-dashboard/src/app/pages/job-manager/logs/job-manager-logs.component.ts
index 95937228852..000f7faf043 100644
---
a/flink-runtime-web/web-dashboard/src/app/pages/job-manager/logs/job-manager-logs.component.ts
+++
b/flink-runtime-web/web-dashboard/src/app/pages/job-manager/logs/job-manager-logs.component.ts
@@ -17,29 +17,27 @@
*/
import { ChangeDetectorRef, Component, OnInit, ChangeDetectionStrategy,
OnDestroy, Inject } from '@angular/core';
-import { ConfigService, JobManagerService } from '@flink-runtime-web/services';
-import { EditorOptions } from 'ng-zorro-antd/code-editor';
+import { FormsModule } from '@angular/forms';
+import { of, Subject } from 'rxjs';
+import { catchError, takeUntil } from 'rxjs/operators';
+
+import { AddonCompactComponent } from
'@flink-runtime-web/components/addon-compact/addon-compact.component';
+import { AutoResizeDirective } from
'@flink-runtime-web/components/editor/auto-resize.directive';
import { flinkEditorOptions } from
'@flink-runtime-web/components/editor/editor-config';
-import {of, Subject} from 'rxjs';
-import {catchError, takeUntil} from 'rxjs/operators';
import {
JOB_MANAGER_MODULE_CONFIG,
JOB_MANAGER_MODULE_DEFAULT_CONFIG,
JobManagerModuleConfig
} from '@flink-runtime-web/pages/job-manager/job-manager.config';
-import {NzCodeEditorModule} from "ng-zorro-antd/code-editor";
-import {AutoResizeDirective} from
"@flink-runtime-web/components/editor/auto-resize.directive";
-import {FormsModule} from "@angular/forms";
-import {
- AddonCompactComponent
-} from "@flink-runtime-web/components/addon-compact/addon-compact.component";
+import { ConfigService, JobManagerService } from '@flink-runtime-web/services';
+import { EditorOptions, NzCodeEditorModule } from 'ng-zorro-antd/code-editor';
@Component({
- selector: 'flink-job-manager-logs',
- templateUrl: './job-manager-logs.component.html',
- styleUrls: ['./job-manager-logs.component.less'],
- changeDetection: ChangeDetectionStrategy.OnPush,
- imports: [NzCodeEditorModule, AutoResizeDirective, FormsModule,
AddonCompactComponent]
+ selector: 'flink-job-manager-logs',
+ templateUrl: './job-manager-logs.component.html',
+ styleUrls: ['./job-manager-logs.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [NzCodeEditorModule, AutoResizeDirective, FormsModule,
AddonCompactComponent]
})
export class JobManagerLogsComponent implements OnInit, OnDestroy {
public readonly downloadName = `jobmanager_log`;
@@ -60,7 +58,7 @@ export class JobManagerLogsComponent implements OnInit,
OnDestroy {
this.downloadUrl = `${this.configService.BASE_URL}/jobmanager/log`;
}
- public ngOnInit() {
+ public ngOnInit(): void {
this.reload();
}
@@ -69,7 +67,7 @@ export class JobManagerLogsComponent implements OnInit,
OnDestroy {
this.destroy$.complete();
}
- public reload() {
+ public reload(): void {
this.loading = true;
this.cdr.markForCheck();
this.jobManagerService
diff --git
a/flink-runtime-web/web-dashboard/src/app/pages/task-manager/logs/task-manager-logs.component.ts
b/flink-runtime-web/web-dashboard/src/app/pages/task-manager/logs/task-manager-logs.component.ts
index d2ca9a74689..b8cff88bd8d 100644
---
a/flink-runtime-web/web-dashboard/src/app/pages/task-manager/logs/task-manager-logs.component.ts
+++
b/flink-runtime-web/web-dashboard/src/app/pages/task-manager/logs/task-manager-logs.component.ts
@@ -17,29 +17,27 @@
*/
import { ChangeDetectorRef, Component, OnInit, ChangeDetectionStrategy,
OnDestroy, Inject } from '@angular/core';
-import {catchError, takeUntil} from 'rxjs/operators';
-import { ConfigService, TaskManagerService } from
'@flink-runtime-web/services';
-import { EditorOptions } from 'ng-zorro-antd/code-editor';
-import {of, Subject} from 'rxjs';
+import { FormsModule } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
+import { of, Subject } from 'rxjs';
+import { catchError, takeUntil } from 'rxjs/operators';
+
+import { AddonCompactComponent } from
'@flink-runtime-web/components/addon-compact/addon-compact.component';
+import { AutoResizeDirective } from
'@flink-runtime-web/components/editor/auto-resize.directive';
+import { ModuleConfig } from '@flink-runtime-web/core/module-config';
import {
TASK_MANAGER_MODULE_CONFIG,
- TASK_MANAGER_MODULE_DEFAULT_CONFIG,
+ TASK_MANAGER_MODULE_DEFAULT_CONFIG
} from '@flink-runtime-web/pages/task-manager/task-manager.config';
-import {ModuleConfig} from "@flink-runtime-web/core/module-config";
-import {NzCodeEditorModule} from "ng-zorro-antd/code-editor";
-import {AutoResizeDirective} from
"@flink-runtime-web/components/editor/auto-resize.directive";
-import {FormsModule} from "@angular/forms";
-import {
- AddonCompactComponent
-} from "@flink-runtime-web/components/addon-compact/addon-compact.component";
+import { ConfigService, TaskManagerService } from
'@flink-runtime-web/services';
+import { EditorOptions, NzCodeEditorModule } from 'ng-zorro-antd/code-editor';
@Component({
- selector: 'flink-task-manager-logs',
- templateUrl: './task-manager-logs.component.html',
- styleUrls: ['./task-manager-logs.component.less'],
- changeDetection: ChangeDetectionStrategy.OnPush,
- imports: [NzCodeEditorModule, AutoResizeDirective, FormsModule,
AddonCompactComponent]
+ selector: 'flink-task-manager-logs',
+ templateUrl: './task-manager-logs.component.html',
+ styleUrls: ['./task-manager-logs.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [NzCodeEditorModule, AutoResizeDirective, FormsModule,
AddonCompactComponent]
})
export class TaskManagerLogsComponent implements OnInit, OnDestroy {
public editorOptions: EditorOptions;
@@ -61,7 +59,7 @@ export class TaskManagerLogsComponent implements OnInit,
OnDestroy {
this.editorOptions = moduleConfig.editorOptions ||
TASK_MANAGER_MODULE_DEFAULT_CONFIG.editorOptions;
}
- public ngOnInit() {
+ public ngOnInit(): void {
this.taskManagerId =
this.activatedRoute.parent!.snapshot.params.taskManagerId;
this.downloadUrl =
`${this.configService.BASE_URL}/taskmanagers/${this.taskManagerId}/log`;
this.downloadName = `taskmanager_${this.taskManagerId}_log`;
@@ -73,7 +71,7 @@ export class TaskManagerLogsComponent implements OnInit,
OnDestroy {
this.destroy$.complete();
}
- public reload() {
+ public reload(): void {
this.loading = true;
this.cdr.markForCheck();
this.taskManagerService