Closed kamkry closed 2 years ago
Hello @kamkry and @KostkaBrukowa! Thank you for plugin! Any idea when this will be merged and released?
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.
Awesome! Thank you @kamkry!
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