Skip to content

Commit 799d321

Browse files
fix: run vitest/valid-title in the type-aware pass
Function and class titles only resolve to a name through type information, so the ESLint rule belongs in the typed pass. Classified in the split only, not in the oxlint router, so oxlint keeps its native syntactic port. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f82f97c commit 799d321

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/eslint/type-aware-split.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const FUNCTIONALLY_TYPE_AWARE_RULES: ReadonlySet<string> = new Set([
1313
...typeAwareJsPluginRules,
1414
...optionallyTypeAwareRules,
1515
"flawless/prefer-read-only-props",
16+
// A function or class passed as a describe/test title only resolves to a
17+
// name through type information, so the ESLint rule belongs in the typed
18+
// pass. Oxlint keeps running its native port, which does the syntactic
19+
// subset, so this is a split classification and not a routing decision.
20+
"vitest/valid-title",
1621
]);
1722

1823
/** The type-aware split mode; see the factory's `typeAware` option. */

0 commit comments

Comments
 (0)