1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How do you make Webstorm/IntelliJ use a specific tsconfig file for specific files for code...

Discussão em 'Angular' iniciado por pfeileon, Outubro 17, 2024 às 13:53.

  1. pfeileon

    pfeileon Guest

    I want to deactivate tsconfig's noUncheckedIndexedAccess flag for an angular project's spec-files. The tests are compiling and running, but Webstorm still shows the particular code spots in the spec files as if the flag was turned on.

    // tsconfig.json
    {
    ...,
    "noUncheckedIndexedAccess": true,
    }


    // tsconfig.spec.json
    {
    "extends": "./tsconfig.json",
    "compilerOptions": {
    "outDir": "./out-tsc/spec",
    "types": ["jasmine"],
    "noUncheckedIndexedAccess": false
    },
    "files": ["src/test.ts"],
    "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
    }


    Webstorm seems to ignore the file's include-array.

    How do I do that / Is this a bug?

    Continue reading...

Compartilhe esta Página