-
Notifications
You must be signed in to change notification settings - Fork 17
Coding Style
JinGyeong Jeong edited this page Jun 28, 2018
·
10 revisions
- TypeScript Styles
- Filenames
- [Module import/export)(#module-importexport)
- Tools
- Refer to
tsconfig.json
andtslint.json
- Use snake_case for non-class component file (e.g.
src/utils.ts
) - Use the class name for class component file (e.g.
src/primitives/Block.ts
)
- Use
export
only. Do not useexport default
- EditorConfig for VS Code
- TSLint
- install tsfmt:
yarn global add typescript-formatter tslint
- run:
tsfmt -r
on the root directory