johnpapa / angular-styleguide

Angular Style Guide: A starting point for Angular development teams to provide consistency through good practices.
http://johnpapa.net
MIT License
23.87k stars 4.15k forks source link

Should "public" always be omitted in TypeScript? #859

Open brian3kb opened 6 years ago

brian3kb commented 6 years ago

The style guide omits the public keyword in all the examples, but I can't see an actual rule that says: "Don't use the public keyword, as everything is public by default to TypeScript."

I know that some prefer to use public in all cases, but I find this can create noise in the codebase on property heavy models, should we have a rule that advises one way or the other?

Thanks!

alterfo commented 6 years ago

Don't use the public keyword Why? everything is public by default to TypeScript. Why? there is no such tooling checking or linting it Why? ...