Skip to content

Conversation

JasonWeinzierl
Copy link
Owner

See tseslint issue 10216. If a property is a function, instead of reporting the entire function, report either its return type or else use getFunctionHeadLocation to report a more narrow location. See tests for example.

Copy link

LCOV of commit b563b7d during .github/workflows/ci.yml #604

Summary coverage rate:
  lines......: 96.7% (4474 of 4628 lines)
  functions..: 96.2% (275 of 286 functions)
  branches...: no data found

Files changed coverage rate:
                                                                    |Lines       |Functions  |Branches    
  Filename                                                          |Rate     Num|Rate    Num|Rate     Num
  ========================================================================================================
  src/rules/no-misused-observables.ts                               | 4.1%    438| 0.0%    18|    -      0

@JasonWeinzierl JasonWeinzierl merged commit 8e06ed9 into main Jun 25, 2025
3 checks passed
@JasonWeinzierl JasonWeinzierl deleted the improve-report-loc branch June 25, 2025 23:14
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.

1 participant