Both general programming and specific TS rules live in this document
if the rule can be formalized, be sure to think about writing a custom linter rule before adding it here
- unions are type safe, flexible, and sometimes more powerful then enums
- infer union from const array when you need both type and values array
- public members - always without
public
keyword(controlled by eslint) - private/protected with
private/protected
keyword and trailing underscoreNOTE: in future we want to be closer to native JS and use JS private fields(with
#
) but now trailing_
is trade-off between reading and transpile
class Foo {
bar = 'public-field'
private someSecret_ = 'private value'
}