warn about ts file extension
Summary: remove statically analysable life from typescript guidelines and let eslint handle it Reviewed By: passy Differential Revision: D33819891 fbshipit-source-id: 3cc3cb512607c3651cd3a9e48228d83bab5bb64a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e9da574720
commit
4c83fbb524
@@ -158,7 +158,6 @@ To start Flipper against a specific OnDemand instance, set FB_ONDEMAND flag, e.g
|
||||
</FbInternalOnly>
|
||||
|
||||
## Guidelines for writing TypeScript
|
||||
* **Important:** Use `.tsx` file extension for all TypeScript files (instead of `.ts`)
|
||||
* Prefer `type` for React props and state over interfaces
|
||||
* Don’t prefix interfaces with `I`
|
||||
* Enums, Types and Interfaces use PascalCase (uppercase first letter)
|
||||
|
||||
Reference in New Issue
Block a user