refactor(web): extract project drag session
This commit is contained in:
@@ -329,6 +329,17 @@ export const rules = [
|
||||
],
|
||||
forbidden: [],
|
||||
},
|
||||
{
|
||||
file: "apps/web/src/hooks/timelineProjectDragSession.ts",
|
||||
maxLines: 70,
|
||||
required: [
|
||||
{
|
||||
pattern: /\bexport function beginProjectDragSession\b/,
|
||||
message: "timeline project drag session helpers must keep document drag lifecycle centralized",
|
||||
},
|
||||
],
|
||||
forbidden: [],
|
||||
},
|
||||
{
|
||||
file: "apps/web/src/hooks/useTimelineDrag.ts",
|
||||
required: [
|
||||
@@ -388,6 +399,10 @@ export const rules = [
|
||||
pattern: /from "\.\/timelineProjectDrag\.js"/,
|
||||
message: "timeline drag must keep project drag bootstrap and mutation gating delegated to the extracted helper module",
|
||||
},
|
||||
{
|
||||
pattern: /from "\.\/timelineProjectDragSession\.js"/,
|
||||
message: "timeline drag must keep project drag document session wiring delegated to the extracted helper module",
|
||||
},
|
||||
],
|
||||
forbidden: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user