1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

`angularCompilerOptions` only for part of my project

Discussão em 'Angular' iniciado por tris, Julho 3, 2025.

  1. tris

    tris Guest

    I'm refactoring an old, pretty large project to make use of more restrictive checks: I want to add strict: true plus some Angular compiler options

    "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true
    }


    to my tsconfig.json.

    The problem is, that this would mean a huge refactoring of my project. For ignoring the TS files I wrote a script that prepends a // @ts-nocheck to all the .ts files (so at least I can still use the old code and refactor step by step.

    But it seems there is nothing similar for the component's templates? There is heavy use of mixins with old @Input decorators Angular can't analyze. Is there any change/equivalent to TS's check disable so I can make use of the stricter checks with the new code?

    Continue reading...

Compartilhe esta Página