Skip to content
Snippets Groups Projects
Commit d997fe13 authored by Phil Hughes's avatar Phil Hughes
Browse files

Merge branch 'docs/update-vue-naming-guidelines' into 'master'

Update vue component naming guidelines

See merge request gitlab-org/gitlab-ce!17018
parents 7534f7a8 469148b2
No related branches found
No related tags found
No related merge requests found
---
title: Update vue component naming guidelines
merge_request: 17018
author: George Tsiolis
type: other
Loading
Loading
@@ -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,
};
```
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment