-
Notifications
You must be signed in to change notification settings - Fork 17
Coding Style
JinGyeong Jeong edited this page Aug 30, 2018
·
10 revisions
- 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 PascalCase, except for SDK class
- Use UPPERCASE for variables for constant value
- Use camelCase for others (e.g. signEcdsa)
- Except JSON (e.g. getTransactionFromJSON)
- Use
export
only. Do not useexport default
- EditorConfig for VS Code
- Prettier - Code formatter
- TSLint
- install dependencies by running
yarn
- run
yarn fmt