diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-02-08 21:06:18 +0200 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-02-08 21:20:54 +0200 |
commit | 469148b23184a1dd2d5ce6ceedcce48c2b02a7d1 (patch) | |
tree | ace27e54748d77650eb55171acbf55b683bd9f37 /doc/development/fe_guide/style_guide_js.md | |
parent | 5edd94ae75c103d468b8b307e37321b92bde6080 (diff) | |
download | gitlab-ce-469148b23184a1dd2d5ce6ceedcce48c2b02a7d1.tar.gz |
Update vue component naming guidelines
Diffstat (limited to 'doc/development/fe_guide/style_guide_js.md')
-rw-r--r-- | doc/development/fe_guide/style_guide_js.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/development/fe_guide/style_guide_js.md b/doc/development/fe_guide/style_guide_js.md index 02773162801..cd26baa4243 100644 --- a/doc/development/fe_guide/style_guide_js.md +++ b/doc/development/fe_guide/style_guide_js.md @@ -302,20 +302,20 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation. #### Naming 1. **Extensions**: Use `.vue` extension for Vue components. -1. **Reference Naming**: Use camelCase for their instances: +1. **Reference Naming**: Use PascalCase for their instances: ```javascript // bad - import CardBoard from 'cardBoard' + import cardBoard from 'cardBoard.vue' components: { - CardBoard: + cardBoard, }; // good - import cardBoard from 'cardBoard' + import CardBoard from 'cardBoard.vue' components: { - cardBoard: + CardBoard, }; ``` |