redhat-developer / redhat-developer/yaml-language-server

Enable default options for TypeScript 6

Open
#1,278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

When migrating to TypeScript 6, Remco needed to configure a bunch of different TypeScript compiler options to disable new compiler errors in order get the code compiling.

It would be nice to enable these compiler errors (by removing the code explicitly disabling them) and address the root cause (for the most part adding more type checking or type information).

There's five such options:

  • "useUnknownInCatchVariables"
  • "strictNullChecks"
  • "strictFunctionTypes"
  • "noImplicitAny" (maybe, I know this one can be a lot of work from experience)
  • "noImplicitThis"

I think we can implement each option across a different PR to make it easier to review.

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 locating the TypeScript compiler configuration and the explicit disabling of the five listed options. Choose one option for a focused change, then trace and fix the resulting compiler errors by adding the needed type checking or type information. Done means that option is enabled and the project compiles without its related errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.