Skip to content

Scheduler — Add ESLint naming-convention rule to forbid underscore-prefixed members#33126

Merged
aleksei-semikozov merged 28 commits intoDevExpress:26_1from
aleksei-semikozov:eslint-naming-convention
Apr 3, 2026
Merged

Scheduler — Add ESLint naming-convention rule to forbid underscore-prefixed members#33126
aleksei-semikozov merged 28 commits intoDevExpress:26_1from
aleksei-semikozov:eslint-naming-convention

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

No description provided.

@aleksei-semikozov aleksei-semikozov force-pushed the eslint-naming-convention branch from 2b90428 to d3a8e3c Compare April 2, 2026 03:13
@aleksei-semikozov aleksei-semikozov marked this pull request as ready for review April 2, 2026 09:56
Copilot AI review requested due to automatic review settings April 2, 2026 09:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens linting for the internal Scheduler TypeScript code by forbidding underscore-prefixed member names, while allowing a curated set of legacy/override members to keep existing code compliant.

Changes:

  • Add a Scheduler-specific allowlist and regex to exempt known legacy/override underscore members from the naming-convention rule.
  • Change @typescript-eslint/naming-convention for Scheduler to forbid underscore-prefixed memberLike identifiers by default.
  • Add a temporary override to still allow underscore-prefixed members under js/__internal/scheduler/appointments/** pending refactoring.

@aleksei-semikozov aleksei-semikozov requested a review from a team as a code owner April 2, 2026 10:58
Copilot AI review requested due to automatic review settings April 2, 2026 11:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.

Copilot AI review requested due to automatic review settings April 2, 2026 12:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings April 2, 2026 13:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

packages/devextreme/js/__internal/scheduler/workspaces/helpers/m_position_helper.ts:243

  • getMaxAllowedVerticalPosition appears to be an internal helper (previously underscore-prefixed) and is only used inside these strategy classes. Consider making it protected (or private) to preserve encapsulation and prevent other code from depending on it as a public method.
  getMaxAllowedVerticalPosition({
    groupIndex,
    showAllDayPanel,
    isGroupedAllDayPanel,
  }) {
    const { rowIndex } = this.viewDataProvider.getLastGroupCellPosition(groupIndex);

Copilot AI review requested due to automatic review settings April 2, 2026 20:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings April 2, 2026 22:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings April 3, 2026 00:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings April 3, 2026 01:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 28 out of 28 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings April 3, 2026 02:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.

@aleksei-semikozov aleksei-semikozov merged commit b972d91 into DevExpress:26_1 Apr 3, 2026
107 of 108 checks passed
aleksei-semikozov added a commit to aleksei-semikozov/DevExtreme that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants