Scheduler — Add ESLint naming-convention rule to forbid underscore-prefixed members#33126
Merged
aleksei-semikozov merged 28 commits intoDevExpress:26_1from Apr 3, 2026
Merged
Conversation
2b90428 to
d3a8e3c
Compare
Contributor
There was a problem hiding this comment.
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-conventionfor Scheduler to forbid underscore-prefixedmemberLikeidentifiers by default. - Add a temporary override to still allow underscore-prefixed members under
js/__internal/scheduler/appointments/**pending refactoring.
packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_day.ts
Outdated
Show resolved
Hide resolved
packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_week.ts
Outdated
Show resolved
Hide resolved
.../devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_work_week.ts
Outdated
Show resolved
Hide resolved
...xtreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_timeline_month.ts
Outdated
Show resolved
Hide resolved
...ages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts
Outdated
Show resolved
Hide resolved
...ages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts
Outdated
Show resolved
Hide resolved
packages/devextreme/js/__internal/scheduler/workspaces/helpers/m_position_helper.ts
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment.
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
getMaxAllowedVerticalPositionappears to be an internal helper (previously underscore-prefixed) and is only used inside these strategy classes. Consider making itprotected(orprivate) 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);
...ages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts
Outdated
Show resolved
Hide resolved
… _dataSourceLoadedCallback
…n to Widget overrides
packages/devextreme/js/__internal/scheduler/shaders/current_time_shader.ts
Show resolved
Hide resolved
Tucchhaa
approved these changes
Apr 3, 2026
aleksei-semikozov
added a commit
to aleksei-semikozov/DevExtreme
that referenced
this pull request
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.