Skip to content

Instantly share code, notes, and snippets.

@luyx2412
Created March 8, 2019 03:53
Show Gist options
  • Save luyx2412/f3de8f5bc9c9f699b904278b81f91104 to your computer and use it in GitHub Desktop.
Save luyx2412/f3de8f5bc9c9f699b904278b81f91104 to your computer and use it in GitHub Desktop.

Rule coding

- `templates` folder contains all templates UI. And have `assets` folder have data, images,... file.
- Each component if have two files or more --> create a folder components. And if have one file which have the name without folder 
Examples: `Settings` folder --> has `index.js` and `SettingList.js` file. `index.js` is main file. If have one file which will only is `Settings.js` file.
- Each `styles` must locate inside file component.
Examples: https://www.screencast.com/t/Oein7wwZK
- Should be format code before commit code. Install prettier-vscode https://github.com/prettier/prettier-vscode. The `prettierrc` file existed in the project.
- Eslint installed in the project. If have any waring, please remove or fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment