Skip to content

TaylorPzreal/codeStyle-codeReview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code style - code review

Code style and code review collections.

Code style

Code review

  • code review

Basic code style

  • 编码都是utf-8
  • 缩进2个空格
  • 时常 format code
  • ts,js,css都是单引号
  • 函数不要过长
  • 函数单一功能
  • 一个文件不要过长,一般不要多过400行
  • 多写注释 (插件Document This)
  • 变量命名,不要用简写的拼音

自动化代码规范

详细配置文件查看 lint-config

  • 编辑器 visual studio code
  • 规范插件
    • ESLint
    • HTMLHint
    • Sass Lint
    • TSLint
    • markdownlint
  • 格式化插件
    • Prettier - Code formatter
    • Beautify
  • 配置插件
    • EditorConfig for VS Code

About

Code style and code review collections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published