-
Notifications
You must be signed in to change notification settings - Fork 86
Using dtslint just for checking type correctness #208
Comments
Is Would it be helpful to have the |
Not sure what it does - from what I see it's a new thing and it hasnt been documented yet. Is it just a flag which is supposed to load other tslint config (
Not sure if other package would be helpful here. Truth to be told I'm slightly confused about what dtslint's goal is. I've started to use because I've got an impression that this is the recommended way of testings types with usage examples but at the moment, from what I observe in the community, people use tsc directly for that. |
The purpose of dtslint is to be the test task for CI runs on Definitely Typed. That is, it has all the knowledge to determine whether typings on Definitely Typed are good enough to check in or not. It can be used on its own for people who want to add types to their own packages. It might be useful for other things, but that's not the main purpose. |
Thanks for clarifying. Seems like Some included TSLint rules were too opinionated for my taste and that's why I have wanted to disable them. They might probably make sense for DefinitelyTyped repo - to keep some sort of unified style, but dtslint being more generic could not include them itself. In my opinion included rules should focus on type correctness & forbidding deprecated stuff. Either way - thanks for the help! |
So I'm using this tool (as recommended) to write tests against my .d.ts files. I don't care about linting though.
It would be really helpful to have an option to disable linting.
The text was updated successfully, but these errors were encountered: