Skip to content

Fix type-checked rules#55

Merged
matejchalk merged 2 commits into
mainfrom
fix-ts-ignores
Jun 24, 2026
Merged

Fix type-checked rules#55
matejchalk merged 2 commits into
mainfrom
fix-ts-ignores

Conversation

@matejchalk

Copy link
Copy Markdown
Contributor

Fixes a major mistake I made in 3d1defa. 😅 My intention was to disable type-checked rules for non-TS files. However, because multiple file patterns are OR'ed, the negations matched every file.

Unit tests didn't catch this because they check if the rule is in the config, but that doesn't take into account explicitly disabled rules. I've strengthened the test assertions to check the configured level as well.

@matejchalk matejchalk self-assigned this Jun 23, 2026
@matejchalk matejchalk added 🐛 bug something isn't working 🔬 testing writing tests 🧩 eslint-config labels Jun 23, 2026
@matejchalk matejchalk requested a review from Tlacenka June 23, 2026 09:15

@Tlacenka Tlacenka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this. 🚀

Comment thread packages/eslint-config/src/configs/typescript.js Outdated
Comment thread packages/eslint-config/tests/configs/typescript.spec.js
@matejchalk matejchalk merged commit 51cc25a into main Jun 24, 2026
8 checks passed
@matejchalk matejchalk deleted the fix-ts-ignores branch June 24, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug something isn't working 🧩 eslint-config 🔬 testing writing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants