Repository navigation
fix: load the pane module by passing $ only into function declarations - #25
Merged
Merged
Conversation
The engine follows $ across an import only into function declarations, so the exported arrow helpers closeSettings and editSettings made it refuse the hooks module. A lint rule now rejects that shape.
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.
What changes
The Taskflow pane never loaded: the engine refused the hooks module because
closeSettingsandeditSettingsinpanel/data/settings.tswere exported arrow functions receiving$, and the engine follows$across an import only into function declarations. Both are now function declarations, the pane's command is renamed to/open-mod, and an ESLintno-restricted-syntaxrule rejects an exported arrow or function expression whose first parameter is$.Acceptance criteria
npm run lintruns, it exits 0$,npm run checkand the pre-commit hook fail — the lint rule, seen failing on both helpers before the fix/open-modopens the Taskflow pane — owner check after reload/taskflowno longer exists (owner check after reload); the README names/open-mod✔Agreed behaviour
/open-mod;/taskflowis no longer a command.$is written as afunctiondeclaration; lint enforces it.Verification
npm run lintexited 1 onsettings.ts:65and:67before the fix and exits 0 after; format check, typecheck and version check pass.