Angular compiler options plugin
See original GitHub issueJust like the TS plugin, I think that having a plugin for angularCompilerOptions
would be 🔥.
The strictTemplates
option from angularCompilerOptions
is especially hard to turn on on an existing code base.
The thing is, it can’t be done from the Typescript plugin only as Typescript doesn’t care about that option. We’d have to make a build of an app or a library using angular CLI I assume.
I just watched this morning btw a video from ng-conf where Alex Rickabaugh talks about the new strictTemplates
option and the fact that it can be hard to turn on on an existing code base: https://www.youtube.com/watch?v=7yge1cHFExI but the only advice is to turn on that mode while improving things locally and turning it off before pushing but this is not optimal as regressions could come in easily and I think that Betterer could shine here 🌞 😄!
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (8 by maintainers)
I got this working with something like this:
I did it on quite a big project and it revealed some issues with the default reporter, so I’m fixing up that and then I’m going to write up something about how this works.
I actually tried this yesterday and couldn’t get it to work, so I’m going to look at it again 😊
The basic idea is there, but I think I need to hook into the CLI a bit deeper.