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
469148b2
Commit
469148b2
authored
Feb 08, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update vue component naming guidelines
parent
5edd94ae
Show 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 @
469148b2
---
title
:
Update vue component naming guidelines
merge_request
:
17018
author
:
George Tsiolis
type
:
other
doc/development/fe_guide/style_guide_js.md
View file @
469148b2
...
...
@@ -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