mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-28 23:49:11 +08:00
coding style
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
## 文件
|
||||
|
||||
* .md 使用 4 空格缩进,文件名使用大驼峰用连字符分割
|
||||
* .coffee, *.js, *.json, *.html, *.less, *.jade 使用 2 空格缩进,文件名使用全小写用下划线分割
|
||||
|
||||
## Node.js
|
||||
|
||||
* 优先使用单引号,总是在行末添加分号
|
||||
|
||||
## Coffee Script
|
||||
|
||||
* 优先使用单引号
|
||||
* 总是省略所有跨行的括号和花括号,尽可能省略掉函数调用的括号
|
||||
* 标点后总是添加空格
|
||||
* 变量名使用全小写用下划线分割,函数名使用小驼峰
|
||||
|
||||
## HTML
|
||||
|
||||
* CSS 类名和 ID 使用全小写用连字符分割
|
||||
Reference in New Issue
Block a user