Skip to content

[ZEPPELIN-6426] Remove redundant eslint-disable comments in zeppelin-web-angular#5264

Open
tbonelee wants to merge 4 commits into
apache:masterfrom
tbonelee:fix-lint
Open

[ZEPPELIN-6426] Remove redundant eslint-disable comments in zeppelin-web-angular#5264
tbonelee wants to merge 4 commits into
apache:masterfrom
tbonelee:fix-lint

Conversation

@tbonelee
Copy link
Copy Markdown
Contributor

@tbonelee tbonelee commented Jun 3, 2026

What is this PR for?

zeppelin-web-angular has several eslint-disable comments that no longer suppress any violation under the current ESLint configuration (e.g. no-invalid-this, id-blacklist, no-eval, jsdoc/no-types, @typescript-eslint/naming-convention, @angular-eslint/component-class-suffix). These unused directives are misleading and add noise, so this PR removes them. No functional change.

What type of PR is it?

Improvement

What is the Jira issue?

How should this be tested?

  • Run npm run lint in zeppelin-web-angular and confirm it still passes.

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

Copy link
Copy Markdown
Contributor

@voidmatcha voidmatcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: add linterOptions: { reportUnusedDisableDirectives: 'error' } to eslint.config.js so this stays enforced by default it's only a warning and ng lint never fails on warnings.

LGTM

Comment thread zeppelin-web-angular/src/app/core/message-listener/message-listener.ts Outdated
tbonelee and others added 3 commits June 6, 2026 00:42
Co-authored-by: YONGJAE LEE (이용재) <dev.yongjaelee@gmail.com>
Set linterOptions.reportUnusedDisableDirectives to 'error' in zeppelin-web-angular/eslint.config.js so eslint-disable directives that no longer suppress anything fail `ng lint` instead of only warning. The flat-config default is 'warn' and `ng lint` exits 0 on warnings, so without this the redundant directives removed in this change would silently accumulate again over time; promoting to error keeps the cleanup enforced by default.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Assisted-By: Claude <noreply@anthropic.com>
…react

Mirror the root zeppelin-web-angular change in the zeppelin-react sub-app's eslint.config.js by setting linterOptions.reportUnusedDisableDirectives to 'error', so eslint-disable directives that no longer suppress anything fail `npm run lint:react` instead of only warning. The flat-config default is 'warn' and plain `eslint` (no --max-warnings) exits 0 on warnings, so without this stale directives would silently accumulate in the React sources too; this keeps both sub-apps consistent.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Assisted-By: Claude <noreply@anthropic.com>
@tbonelee
Copy link
Copy Markdown
Contributor Author

tbonelee commented Jun 5, 2026

Thanks @voidmatcha! Added it in 746751d, and applied the same to the zeppelin-react config (baf33cd) since it has the identical gap. Lint passes on both with no unused directives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants