-
Notifications
You must be signed in to change notification settings - Fork 666
Scheduler — Add ESLint naming-convention rule to forbid underscore-prefixed members #33126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aleksei-semikozov
merged 28 commits into
DevExpress:26_1
from
aleksei-semikozov:eslint-naming-convention
Apr 3, 2026
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d2d91d7
Scheduler - Add ESLint naming-convention rule to forbid underscore-pr…
aleksei-semikozov d3a8e3c
Scheduler - Add legacy members to naming-convention allowlist
aleksei-semikozov 4b12af6
Scheduler - Replace underscore-prefixed with private/protected modifiers
aleksei-semikozov d47eb48
Scheduler - Remove renamed methods from ESLint allowlist
aleksei-semikozov 0e98856
Scheduler - Extract ESLint allowlist to separate file
aleksei-semikozov 35f9a1e
Scheduler - Replace underscore-prefixed members in shaders with modif…
aleksei-semikozov ef97b50
Scheduler - Restore _shader to allowlist (used in m_work_space.ts)
aleksei-semikozov 8d9569b
Scheduler - Replace _calculateCellIndex with protected calculateCellI…
aleksei-semikozov e782ffe
Scheduler - Replace underscore-prefixed in m_position_helper and m_form
aleksei-semikozov 597938c
Scheduler - Replace underscore-prefixed members in header
aleksei-semikozov 974db2b
Scheduler - Replace underscore-prefixed in calendar, popup, r1 compon…
aleksei-semikozov 935aa84
Scheduler - Group legacy allowlist members by source file
aleksei-semikozov 0545895
Scheduler - Replace internal underscore-prefixed members in m_schedul…
aleksei-semikozov 38bf73f
Scheduler - Fix external usages of renamed members
aleksei-semikozov 947e2b8
Scheduler - Revert _dataSource rename (inherited from Widget) and fix…
aleksei-semikozov 28e5bff
Scheduler - Move _dataSource, _dataSourceLoadedCallback, _createActio…
aleksei-semikozov 03256f0
Scheduler - Move _options to Widget overrides
aleksei-semikozov f53a6f0
Scheduler - Fix remaining _dataSourceChangedHandler reference
aleksei-semikozov 67a96e2
Scheduler - Revert header, calendar, popup, r1, m_scheduler.ts rename…
aleksei-semikozov 36b1564
Scheduler - Replace underscore-prefixed members in header
aleksei-semikozov b106c15
Scheduler - Replace underscore-prefixed members in m_calendar
aleksei-semikozov 69dfa98
Scheduler - Replace underscore-prefixed in popup/form
aleksei-semikozov d159e26
Scheduler - Replace underscore-prefixed in r1 components
aleksei-semikozov 03ce643
Scheduler - Rename internal m_scheduler members, move Widget-inherite…
aleksei-semikozov a4f0129
Scheduler - Add TODO comments to legacy allowlist members
aleksei-semikozov 09915c4
Scheduler - Merge workspace overrides into legacy, group by source file
aleksei-semikozov 2fba25b
Scheduler - Add protected modifier to renamed overrides
aleksei-semikozov 857e020
Scheduler - Revert _getIntervalDuration rename, add to allowlist with…
aleksei-semikozov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| const schedulerDOMComponentOverrides = [ | ||
| '_createActionByOption', | ||
| '_defaultOptionsRules', | ||
| '_dimensionChanged', | ||
| '_dispose', | ||
| '_disposed', | ||
| '_getDefaultOptions', | ||
| '_init', | ||
| '_initTemplates', | ||
| '_optionChanged', | ||
| '_setOptionsByReference', | ||
| '_useTemplates', | ||
| '_visibilityChanged', | ||
| ]; | ||
|
|
||
| const schedulerWidgetOverrides = [ | ||
| '_activeStateUnit', | ||
| '_clean', | ||
| '_cleanFocusState', | ||
| '_eventBindingTarget', | ||
| '_fireContentReadyAction', | ||
| '_focusInHandler', | ||
| '_focusOutHandler', | ||
| '_focusTarget', | ||
| '_initMarkup', | ||
| '_keyboardHandler', | ||
| '_render', | ||
| '_renderContent', | ||
| '_renderFocusState', | ||
| '_renderFocusTarget', | ||
| '_supportedKeys', | ||
| '_toggleVisibility', | ||
| '_createAction', | ||
| '_createEventArgs', | ||
| '_dataSource', | ||
| '_dataSourceChangedHandler', | ||
| '_dataSourceOptions', | ||
| '_options', | ||
| ]; | ||
|
|
||
| const schedulerCollectionWidgetOverrides = [ | ||
| '_cleanItemContainer', | ||
| '_clearDropDownItemsElements', | ||
| '_createItemByTemplate', | ||
| '_executeItemRenderAction', | ||
| '_filteredItems', | ||
| '_findItemElementByItem', | ||
| '_focusedItemIndexBeforeRender', | ||
| '_getItemContent', | ||
| '_itemClass', | ||
| '_itemClickHandler', | ||
| '_itemContainer', | ||
| '_moveFocus', | ||
| '_postprocessRenderItem', | ||
| '_processItemClick', | ||
| '_refreshActiveDescendant', | ||
| '_renderDirection', | ||
| '_renderItem', | ||
| '_sortedItems', | ||
| ]; | ||
|
|
||
| const schedulerR1Overrides = [ | ||
| '_propsInfo', | ||
| '_value', | ||
| '_viewComponent', | ||
| ]; | ||
|
|
||
| const schedulerLegacyMembers = [ | ||
| // workspaces/m_work_space.ts | ||
| '_$allDayPanel', | ||
| '_$dateTable', | ||
| '_$dateTableScrollableContent', | ||
| '_$flexContainer', | ||
| '_$groupTable', | ||
| '_$headerPanel', | ||
| '_$headerPanelContainer', | ||
| '_$thead', | ||
| '_dateTableScrollable', | ||
| '_getCellCount', | ||
| '_getGroupCount', | ||
| '_groupedStrategy', | ||
| '_isHorizontalGroupedWorkSpace', | ||
| '_shader', | ||
| '_sidebarScrollable', | ||
|
|
||
| // m_scheduler.ts | ||
| '_appointments', | ||
| '_compactAppointmentsHelper', | ||
| '_dataAccessors', | ||
| '_getDragBehavior', | ||
| '_isAppointmentBeingUpdated', | ||
| '_layoutManager', | ||
| '_workSpace', | ||
|
|
||
| // appointments/m_appointment_collection.ts | ||
| '_renderAppointmentTemplate', | ||
|
|
||
| // workspaces/view_model/m_view_data_generator.ts | ||
| '_getIntervalDuration', | ||
|
|
||
| // workspaces/m_virtual_scrolling.ts | ||
| '_renderGrid', | ||
|
|
||
| // appointment_popup/m_popup.ts | ||
| '_popup', | ||
|
|
||
| // appointment_popup/m_legacy_popup.ts | ||
| '_ignorePreventScrollEventsDeprecation', | ||
|
|
||
| // header/m_header.ts | ||
| '_useShortDateFormat', | ||
|
|
||
| // header/m_view_switcher.ts | ||
| '_wrapperClassExternal', | ||
|
|
||
| // utils/options/constants.ts, utils/options/types.ts | ||
| '_appointmentTooltipOffset', | ||
| '_draggingMode', | ||
| ]; | ||
|
|
||
| const schedulerMemberAllowlist = [ | ||
| ...schedulerDOMComponentOverrides, | ||
| ...schedulerWidgetOverrides, | ||
| ...schedulerCollectionWidgetOverrides, | ||
| ...schedulerR1Overrides, | ||
| ...schedulerLegacyMembers, | ||
| ]; | ||
|
|
||
| export const schedulerMemberAllowlistRegex = | ||
| `^(_|__esModule|${schedulerMemberAllowlist.map(s => s.replace(/\$/g, '\\$')).join('|')})$`; | ||
aleksei-semikozov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.