Skip to content

Increase strictness of tsconfig #2255

Open
@ansemb

Description

@ansemb

Is your feature request related to a problem? Please describe.

Currently tsconfig.base.json has quite low strictness, and Typescript is not helping the developer as much as it could.

Also, there is a higher change of bugs arising without this strictness.

I suggest "strict": true and "noUncheckedIndexedAccess": true is added to tsconfig, but there are also some other settings that could be interesting.

Matt Pocock has a good blog post here: https://www.totaltypescript.com/tsconfig-cheat-sheet.

In case this is something that could be added, we should start by updating @jsonforms/core and could afterwards do other packages.

It would require quite a bit of (small) changes several places.

Describe the solution you'd like

packages/core/tsconfig.json:

{
  "compilerOptions": {
    "verbatimModuleSyntax": true,
    /* strictness */
    "strict": true,
    "noUncheckedIndexedAccess": true,
  }
}

see also:

Describe alternatives you've considered

.

Framework

Core

RendererSet

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions