Skip to content

Filename convension #1847

@tuandm

Description

@tuandm

Feature request(新功能建议)

This is just a suggestion to standardize filename convention for *.vue and *.js

  1. CamelCase for Vue file inside /components except index.vue (since this is default). Ex:
  • src/components/Charts/Keyboard.vue
  • src/views/charts/Keyboard.vue
  • src/views/charts/Line/index.vue
  1. kebab-case for js files. Ex:
  • src/components/MarkdownEditor/default-options.js
  • src/views/svg-icons/require-icons.js
  1. Folders: CamelCase for global components and kebab-case for others. Ex:
  • src/components/ComponentName/index.vue
  • src/views/components-demo/
  • src/views/error-page/
  • src/directive/el-drag-dialog

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions