Commit 3fd106a
fix: Handle type-annotation mode with no type annotation in consistent-generic-constructors
This fixes the failing CI checks for PR #78:
- Fix Go test failures for invalid-13 and invalid-14 cases
- Add consistent-generic-constructors rule to rslint.json config
The issue was that when there's no type annotation on a variable declaration,
the rule should still report violations in "type-annotation" mode if the
constructor has type arguments (they should be on the type annotation instead).
In "constructor" mode, having type args on the constructor with no annotation
is acceptable.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5008a74 commit 3fd106a
File tree
2 files changed
+11
-3
lines changed- internal/plugins/typescript/rules/consistent_generic_constructors
2 files changed
+11
-3
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments