8000 Fix incorrect ignore of temporary `.d.ts` files from fixtures in `xo.config.js` by som-sm · Pull Request #1333 · sindresorhus/type-fest · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@som-sm
Copy link
Collaborator
@som-sm som-sm commented Jan 25, 2026

The fix made in #1326 didn't quite fix the issue.

I looked into the XO codebase and realised that using ignores inside xo.config.js isn't what we want over here. From what I understand, files ignored this way are still linted, they just do not have any matching rules applied. That is not sufficient in this case because these files are ephemeral, which makes the linting process flaky.

This PR removes ignores from xo.config.js and moves the configuration to a CLI flag instead. This ensures the temporary files are not linted at all. Refer https://github.com/xojs/xo/blob/ceadd8d1cbbeac894ecf56936ab8e509ae5e432b/lib/xo.ts#L341.

@som-sm som-sm requested a review from sindresorhus January 25, 2026 13:56
Repository owner deleted a comment from claude bot Jan 25, 2026
@som-sm som-sm marked this pull request as draft January 25, 2026 13:59
@som-sm som-sm force-pushed the fix/incorrect-fixtures-ignores-xo-config branch from c252fa6 to 9081c41 Compare January 25, 2026 13:59
@som-sm som-sm marked this pull request as ready for review January 25, 2026 14:00
Repository owner deleted a comment from claude bot Jan 25, 2026
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

0