BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d997fe13
Commit
d997fe13
authored
Feb 09, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
docs-update-vue-naming-guidelines.yml
changelogs/unreleased/docs-update-vue-naming-guidelines.yml
+5
-0
style_guide_js.md
doc/development/fe_guide/style_guide_js.md
+5
-5
No files found.
changelogs/unreleased/docs-update-vue-naming-guidelines.yml
0 → 100644
View file @
d997fe13
---
title
:
Update vue component naming guidelines
merge_request
:
17018
author
:
George Tsiolis
type
:
other
doc/development/fe_guide/style_guide_js.md
View file @
d997fe13
...
...
@@ -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
came
lCase for their instances:
1.
**Reference Naming**
: Use
Pasca
lCase 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,
};
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment