typescript-eslint / typescript-eslint/ts-api-utils

🚀 Feature: Migrate functions from @typescript-eslint/type-utils

Open
#163 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepting prs type: feature
Dominant language
TypeScript
Stars
122
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Bug Report Checklist
  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.
Overview

Some of the functions there could probably be moved to this project (or at least exists in both).

Additional Info

List of functions:

  • containsAllTypesByName
  • getConstrainedTypeAtLocation
  • getContextualType
  • getDeclaration
  • getSourceFileOfNode
  • getTokenAtPosition
  • getTypeArguments
  • getTypeName
  • isTypeReadonly
  • isUnsafeAssignment
  • isNullableType
  • isTypeArrayTypeOrUnionOfArrayTypes
  • isTypeNeverType
  • isTypeUnknownType
  • isTypeReferenceType
  • isTypeAnyType
  • isTypeAnyArrayType
  • isTypeUnknownArrayType
  • isAnyOrAnyArrayTypeDiscriminated
  • typeIsOrHasBaseType
  • isTypeBigIntLiteralType
  • isTypeTemplateLiteralType
  • getTypeOfPropertyOfName
  • getTypeOfPropertyOfType
  • requiresQuoting
  • getTypeFlags
  • isTypeFlagSet

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the listed functions in @typescript-eslint/type-utils with the utilities already exposed by this project. Determine which functions should move here or be duplicated, then define the intended API and compatibility expectations before implementation. The issue does not name files or tests, so those entry points still need to be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.