Repository navigation
fix(lint): resolve family facts imports on Windows - #1927
Open
embrace897 wants to merge 1 commit into
Open
embrace897 wants to merge 1 commit into
embrace897 wants to merge 1 commit into
Conversation
1 task done
This was referenced Nov 18, 2026
This was referenced Nov 18, 2026
5 tasks done
This was referenced Nov 19, 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.
Summary
Calculate local fact-module imports with the native path API, then normalize the result for the rule's repo-relative comparisons. On Windows the resolver returns native separators, which the previous POSIX-relative calculation misclassified.
Type of Change
Lint rule bug fix.
Test Plan
On native Windows,
npx vitest run oxlint-plugin-teamai/rules/family-facts.test.ts --retry 0went from 13 failures to 35 passing tests. Baseline lint reports 26 false positives in the tool facts modules.Related Issues
The baseline failure was also recorded in the test plan of #1925.
Notes for Reviewers
AI-assisted. The existing rule suite exercises permitted facts imports and forbidden behavior imports.