Skip to content

@tsconfig/strictest conflict with @tsconfig/vite-react #199

Open

Description

@guoyunhe

tsconfig:

{
  "extends": ["@tsconfig/vite-react/tsconfig.json", "@tsconfig/strictest/tsconfig.json"],
  "compilerOptions": {
    "paths": {
      "@guoyunhe/react-fetch": ["./src"]
    },
    "types": [
      "node",
      "jest",
      "@guoyunhe/react-lib-scripts/assets",
      "@guoyunhe/react-lib-scripts/global"
    ]
  }
}

TypeScript 5 have the following error:

error TS5052: Option 'checkJs' cannot be specified without specifying option 'allowJs'.

It is because that @tsconfig/vite-react has "allowJs": false, which is not necessary.

Activity

  1. agilgur5 commented on Mar 28, 2025

    @agilgur5
    Contributor

    It is because that @tsconfig/vite-react has "allowJs": false, which is not necessary.

    It looks like this was removed in #239, so I think this is fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions