Add @tsconfig/strictest#88
Conversation
|
Yeah, I think I'd drop I think And lets keep |
That's a great point - I've removed |
|
Principles vs practicality I think allowJs+checkJs: true is absolutely stricter. I would imagine this config is not concerned with practicality - give me the strictest settings and I'll disable things as I go along. Same reasoning for noPropertyAccessFromIndexSignature I believe also applies to checkJs+allowJs On a personal note, I've founds "jsdoc typescript" to be a wonderful learning experience. Good for low-level JavaScript, config files, node scripts |
|
Any chance of adding |
|
If we want to be slightly less strict to improve DX, shouldn't we have allowJs: true, and then developers can opt-in on a file-by-file basis by adding (But really, is opting into type-checking on each js file the "strictest" config? no.) |
|
No, I think it would be quite surprising to check type check JS files because you added a base which is about strictness |
|
Shouldn’t the options be flipped though, allowJs: true and checkJs undefined? |
|
That way devs can add // @ts-check to the js files they want to check bear in mind, developers still need to tell typescript to take their js files into consideration via included or files config |
|
Mostly unrelated bug... but I'm hacking on a node package, pino-applicationinsights, and tsc v4.6.3 (latest stable) Note: I'm doing |
Closes #68
Not sure if
noPropertyAccessFromIndexSignature,noEmitOnError, orcheckJsshould be included as they probably cause more problems than they solve.