allegro / typescript-strict-plugin

Typescript plugin that allows turning on strict mode in specific files or directories.
MIT License
338 stars 29 forks source link

idea: script that looks for files that can have @ts-strict added to them #6

Closed sudall closed 2 years ago

sudall commented 3 years ago

This might help for scenarios where //@ts-strict is available, but not everyone on the dev team knows about it or maybe has forgotten to use it, and also just to avoid the manual effort of trying to figure out which files are already strict compatible.

Along this same train of thought... another idea could be a pre-commit hook that checks to make sure new TS files have //@ts-strict and checks to see if existing ones can have //@ts-strict added to them.

kamkry commented 2 years ago

Hi, we're working on an update which has a tool to do exactly that. Thanks for your idea, and stay tuned!