flaviait / ng2-jspm-template

A template for a quick development workflow with angular 2 and jspm
MIT License
14 stars 3 forks source link

More strict options for the ts-compiler #46

Closed DorianGrey closed 7 years ago

DorianGrey commented 7 years ago

Since we've recently adopted tslint 4, which dropped some options that now may now be covered by the Typescript compiler itself, we should enable these options also. I've been using this combination in a production project, and it's also the default for this template's evil brother, and had good experience with this in both of them.

The only relaxing option is suppressImplicitAnyIndexErrors - it's often a rather complicated error to fix in a way the TS compiler likes it, so it's common to suppress it.

@svi3c