Skip to content

fix(lint): resolve family facts imports on Windows - #1927

Open
embrace897 wants to merge 1 commit into
Tencent:mainfrom
embrace897:embrace897/facts-lint-windows
Open

embrace897 wants to merge 1 commit into
Tencent:mainfrom
embrace897:embrace897/facts-lint-windows

Conversation

@embrace897

Copy link
Copy Markdown
Contributor

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 0 went 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants