Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
changelogs/unreleased/docs-update-vue-naming-guidelines.yml
changelogs/unreleased/docs-update-vue-naming-guidelines.yml
+5
-0
doc/development/fe_guide/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.
...
@@ -302,20 +302,20 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation.
#### Naming
#### Naming
1.
**Extensions**
: Use
`.vue`
extension for Vue components.
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
```
javascript
// bad
// bad
import
CardBoard
from
'
cardBoard
'
import
cardBoard
from
'
cardBoard.vue
'
components
:
{
components
:
{
CardBoard
:
cardBoard
,
};
};
// good
// good
import
cardBoard
from
'
cardBoard
'
import
CardBoard
from
'
cardBoard.vue
'
components
:
{
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