Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions zeppelin-web-angular/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ module.exports = tseslint.config(
// Build output, vendored binaries and the React sub-app are never linted.
ignores: ['dist/**', 'target/**', '.angular/**', 'coverage/**', 'node/**', 'projects/zeppelin-react/**']
},
{
// Fail (not just warn) on eslint-disable directives that no longer suppress
// anything. The flat-config default is 'warn', and `ng lint` exits 0 on
// warnings, so stale directives would otherwise accumulate unnoticed --
// promoting to 'error' keeps the ZEPPELIN-6426 cleanup enforced.
linterOptions: { reportUnusedDisableDirectives: 'error' }
},
{
files: ['**/*.ts'],
// == legacy `plugin:@angular-eslint/recommended` (sets the TS parser and
Expand Down
8 changes: 8 additions & 0 deletions zeppelin-web-angular/projects/zeppelin-react/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ module.exports = tseslint.config(
// == legacy `ignorePatterns`
ignores: ['dist/**', 'node_modules/**', 'webpack.config.js']
},
{
// Fail (not just warn) on eslint-disable directives that no longer suppress
// anything. The flat-config default is 'warn', and `npm run lint:react`
// (plain `eslint`, no --max-warnings) exits 0 on warnings, so stale
// directives would otherwise accumulate unnoticed -- mirrors the root
// zeppelin-web-angular config (ZEPPELIN-6426).
linterOptions: { reportUnusedDisableDirectives: 'error' }
},
{
files: ['src/**/*.{ts,tsx}'],
// == legacy `extends`: eslint:recommended + @typescript-eslint/recommended
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* limitations under the License.
*/

/* eslint-disable jsdoc/no-types */
/**
* Representation of event type.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Visualization } from './visualization';
template: '',
standalone: false
})
// eslint-disable-next-line @angular-eslint/component-class-suffix
export abstract class G2VisualizationComponentBase implements OnDestroy {
abstract container: ElementRef<HTMLDivElement>;
chart?: G2.Chart | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { GraphConfig } from '@zeppelin/sdk';
import { TableData } from './table-data';
import { Transformation } from './transformation';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export class TableTransformation extends Transformation {
constructor(config: GraphConfig) {
super(config);
Expand Down
1 change: 0 additions & 1 deletion zeppelin-web-angular/src/app/app-http.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class AppHttpInterceptor implements HttpInterceptor {
intercept(httpRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
let httpRequestUpdated = httpRequest.clone({ withCredentials: true });
if (environment.production) {
// eslint-disable-next-line @typescript-eslint/naming-convention
httpRequestUpdated = httpRequest.clone({ setHeaders: { 'X-Requested-With': 'XMLHttpRequest' } });
}
return next.handle(httpRequestUpdated).pipe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Subject } from 'rxjs';
template: '',
standalone: false
})
// eslint-disable-next-line @angular-eslint/component-class-suffix
export class DestroyHookComponent implements OnDestroy {
readonly destroy$ = new Subject<void>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { Message, MessageReceiveDataTypeMap, ReceiveArgumentsType } from '@zeppe
template: '',
standalone: false
})
// eslint-disable-next-line @angular-eslint/component-class-suffix
export class MessageListenersManager implements OnDestroy {
__zeppelinMessageListeners__?: Array<() => void>;
__zeppelinMessageListeners$__: Subscriber<unknown> | null = new Subscriber();
Expand All @@ -43,18 +42,14 @@ export function MessageListener<K extends keyof MessageReceiveDataTypeMap>(op: K
) {
const oldValue = descriptor.value as ReceiveArgumentsType<K>;

// eslint-disable-next-line no-invalid-this
const fn = function (this: MessageListenersManager) {
// eslint-disable-next-line no-invalid-this
if (!this.__zeppelinMessageListeners$__) {
throw new Error('__zeppelinMessageListeners$__ is not defined');
}
// eslint-disable-next-line no-invalid-this

this.__zeppelinMessageListeners$__.add(
// eslint-disable-next-line no-invalid-this
this.messageService.receive(op).subscribe(data => {
// @ts-ignore
// eslint-disable-next-line no-invalid-this
oldValue.apply(this, [data]);
})
);
Expand Down
1 change: 0 additions & 1 deletion zeppelin-web-angular/src/app/languages/scala.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ export const language = {
[/[\/*]/, 'comment.doc']
],

// eslint-disable-next-line id-blacklist
string: [
[/[^\\"]+/, 'string'],
[/@escapes/, 'string.escape'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ export class NotebookParagraphResultComponent implements OnInit, AfterViewInit,
this.destroy$.complete();
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
private commitClassicVizConfigChange(configForMode: GraphConfig, mode: string) {
if (this.isPending) {
return;
Expand Down
1 change: 0 additions & 1 deletion zeppelin-web-angular/src/app/services/helium.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class HeliumService extends BaseRest {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any)._heliumBundles = [] as HeliumBundle[];
availableBundles.forEach(bundle => {
// eslint-disable-next-line no-eval
eval(bundle);
});

Expand Down
Loading