Skip to content

Conversation

dididy
Copy link
Contributor

@dididy dididy commented Sep 10, 2025

What is this PR for?

#5065 (comment)

In #5065, it was suggested that keeping exports sorted alphabetically would improve readability and consistency.

TSLint does not provide a built-in rule for this (only ordered-imports exists for imports). Therefore, following the approach from #5053, I added a custom TSLint rule to enforce alphabetical ordering for exports.

Applying this rule across the entire codebase would introduce many disruptive changes, so for now it is scoped only to the public-api.ts file.

What type of PR is it?

Improvement

Todos

What is the Jira issue?

How should this be tested?

Screenshots (if appropriate)

Questions:

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

tbonelee
tbonelee previously approved these changes Sep 15, 2025
Copy link
Contributor

@tbonelee tbonelee left a comment

Choose a reason for hiding this comment

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

LGTM

@tbonelee
Copy link
Contributor

Could you rebase this onto master branch?

@tbonelee tbonelee merged commit 8d18618 into apache:master Sep 18, 2025
15 of 18 checks passed
tbonelee pushed a commit that referenced this pull request Sep 18, 2025
…s in public-api.ts

### What is this PR for?
#5065 (comment)

In #5065, it was suggested that keeping exports sorted alphabetically would improve readability and consistency.

TSLint does not provide a built-in rule for this (only `ordered-imports` exists for imports). Therefore, following the approach from #5053, I added a custom TSLint rule to enforce alphabetical ordering for exports.

Applying this rule across the entire codebase would introduce many disruptive changes, so for now it is scoped only to the **public-api.ts** file.

### What type of PR is it?
Improvement

### Todos

### What is the Jira issue?
* [[ZEPPELIN-6325](https://issues.apache.org/jira/browse/ZEPPELIN-6325)]

### How should this be tested?

### Screenshots (if appropriate)

### Questions:
* Does the license files need to update? N
* Is there breaking changes for older versions? N
* Does this needs documentation? N

Closes #5071 from dididy/test/orderedExports.

Signed-off-by: ChanHo Lee <[email protected]>
(cherry picked from commit 8d18618)
Signed-off-by: ChanHo Lee <[email protected]>
@tbonelee
Copy link
Contributor

tbonelee commented Sep 18, 2025

Thanks, merged into master and branch-0.12

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