Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interface-over-type-literal default true #19

Closed
MSakamaki opened this issue Feb 15, 2019 · 2 comments
Closed

interface-over-type-literal default true #19

MSakamaki opened this issue Feb 15, 2019 · 2 comments

Comments

@MSakamaki
Copy link
Contributor

although tslint is introduced in Formatting, since most tslint rules do not override interface-over-type-literal and are true, contents of type vs interface will error .
(confirming, only TSLint Clean Code was false)

also issues, it may be deleted from tslint: recommended in future, but it has not disappeared at moment.

Important thing is that if you follow the rules of tslint, will most likely result in an error.

need to set interface-over-type-literal to false as a workaround, should prompt for a trade-off with quality.

should I add this as a supplement to type vs interface?

@dimadeveatii
Copy link
Member

There might be more options like interface-over-type-literal that are not inline with principles from Clean Code. We should try to avoid transforming this tutorial in a TSLint guide.

And after all, TSLint is introduced as a recommendation and example of tools that can help make your code clean.

@MSakamaki
Copy link
Contributor Author

There might be more options like interface-over-type-literal that are not inline with principles from Clean Code. We should try to avoid transforming this tutorial in a TSLint guide.
And after all, TSLint is introduced as a recommendation and example of tools that can help make your code clean.

Okay I agreed !

I will contributing project according to that policy in future.
Thank you for answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants