allegro / typescript-strict-plugin

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

(v2.0) Strict mode by default #19

Closed kamkry closed 2 years ago

kamkry commented 2 years ago

We noticed that adding strict mode manually was not enough for project migration due to simply forgetting to add it in new files or in changed ones. The new version will enable strict mode by default (no need for ts-strict comment) and ignore it in a specific file one can add //@ts-strict-ignore at the top of a file. With that design new files automatically come with strict mode enabled and it's easier to notice ignored files when modifying them, encouraging to try to fix those errors.

What about migration? The 2.0 version will come with a CLI tool that will automatically detect files with strict errors and add ignore comments to them. It will also remove unnecessary strict comments existing in the project.

The PR also introduces a major refactor, unifying the strict file detection between CLI tools and the TS plugin.

Tasks left

aleksandrlat commented 2 years ago

Hello @kamkry and @KostkaBrukowa! Thank you for plugin! Any idea when this will be merged and released?

kamkry commented 2 years ago

Hi @aleksandrlat, we've just published it with version 2.0.0-beta.0 🎉 It's published as beta because we want to make sure everything works poperly with that big change.

aleksandrlat commented 2 years ago

Awesome! Thank you @kamkry!