refactor(web): extract range selection bootstrap
This commit is contained in:
@@ -153,6 +153,10 @@ export const rules = [
|
||||
file: "apps/web/src/hooks/timelineRangeSelection.ts",
|
||||
maxLines: 90,
|
||||
required: [
|
||||
{
|
||||
pattern: /\bexport function createRangeSelectionState\b/,
|
||||
message: "timeline range helpers must keep selection bootstrap centralized",
|
||||
},
|
||||
{
|
||||
pattern: /\bexport function updateRangeSelectionDraft\b/,
|
||||
message: "timeline range helpers must keep preview date derivation centralized",
|
||||
@@ -304,7 +308,7 @@ export const rules = [
|
||||
],
|
||||
forbidden: [
|
||||
{
|
||||
pattern: /\bfunction (?:toPxValue|joinTransforms|captureLivePreviewTargets|renderLivePreview|scheduleLivePreview|clearLivePreview|datesMatch|preserveLivePreview)\b/,
|
||||
pattern: /\bfunction (?:toPxValue|joinTransforms|captureLivePreviewTargets|renderLivePreview|scheduleLivePreview|clearLivePreview|datesMatch|preserveLivePreview|createRangeSelectionState)\b/,
|
||||
message: "timeline drag must not re-inline live preview helper implementations",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user