hmil / tslint-override

TSLint plugin bringing support for the override keyword
MIT License
27 stars 6 forks source link

Exclude anonymous classes when using decorators #25

Closed hmil closed 5 years ago

hmil commented 5 years ago

Fix #24

@Yuudaari Please review and let me know if this fixes your use-case.

ChiriVulpes commented 5 years ago

This works for me, because in my use case I just want anonymous class @Override decorators to be ignored.

In my issue I suggested having an option allowing people to fall back to JSDoc for anon classes instead, but as long as you're fine with not providing the ability to do that, that's fine with me.

I wonder if someone will eventually want that functionality. I guess it's probably a good idea to wait until someone actually needs it to put that effort in.