Skip to content

[ZEPPELIN-6421] Integrate zeppelin-react lint into root lint script#5258

Open
tbonelee wants to merge 1 commit into
apache:masterfrom
tbonelee:ZEPPELIN-6421-lint-react
Open

[ZEPPELIN-6421] Integrate zeppelin-react lint into root lint script#5258
tbonelee wants to merge 1 commit into
apache:masterfrom
tbonelee:ZEPPELIN-6421-lint-react

Conversation

@tbonelee
Copy link
Copy Markdown
Contributor

@tbonelee tbonelee commented May 24, 2026

What is this PR for?

zeppelin-react has its own ESLint config with rules at error level (e.g. @typescript-eslint/no-explicit-any, react-hooks/exhaustive-deps), but its lint script is not wired into the root npm run lint of zeppelin-web-angular. As a result, Maven's npm lint execution (zeppelin-web-angular/pom.xml) does not catch ESLint violations in zeppelin-react.

What changes are proposed?

Mirror the existing build:react pattern with lint:react / lint:fix:react scripts and include them in the root composite lint and lint:fix scripts. The postinstall hook already installs projects/zeppelin-react/node_modules, so no extra install step is needed.

What type of PR is it?

Improvement

Todos

  • - Update root lint scripts to include zeppelin-react

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-6421

How should this be tested?

Run npm run lint inside zeppelin-web-angular/ and confirm that zeppelin-react ESLint errors are reported.

Screenshots (if appropriate)

N/A

Questions:

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

zeppelin-react has its own ESLint config (with rules at error level)
but was not wired into the root lint script. Mirror the existing
build:react pattern with lint:react and lint:fix:react, and include
them in the root composite lint scripts so Maven's npm lint execution
catches ESLint violations in zeppelin-react.
@tbonelee tbonelee requested a review from jongyoul May 24, 2026 17:25
@tbonelee
Copy link
Copy Markdown
Contributor Author

@voidmatcha Could you take a quick look at this when you have a moment?

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.

LGTM.

Tried it in local env: dropped a deliberate const x: any into projects/zeppelin-react/src/utils/index.ts and npm run lint:react flagged it as @typescript-eslint/no-explicit-any (exit 1); clean source returns exit 0. So the new script actually catches what Maven's npm lint was missing.

I'll handle the Playwright auth-variant flakiness in a separate PR under ZEPPELIN-6422.

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