add: 前端代码规范

This commit is contained in:
qianguyihao 2021-04-10 11:10:14 +08:00
parent 1055343951
commit dcdb7cb6e1
5 changed files with 50 additions and 1 deletions

View File

@ -1,6 +1,55 @@
## 参考链接 ## 前端代码规范-推荐资料
### 重点推荐下面这两个
1Airbnb JavaScript Style Guide
- 英文原版https://github.com/airbnb/javascript
- 中文版https://github.com/lin-123/javascript
2clean code JavaScript
- 英文原版https://github.com/ryanmcdermott/clean-code-javascript
- 中文版1https://github.com/alivebao/clean-code-js
- 中文版2https://github.com/beginor/clean-code-javascript
### eslint规范
1eslint-config-airbnb
https://www.npmjs.com/package/eslint-config-airbnb
https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb
2凹凸实验室的eslint规范
https://www.npmjs.com/package/eslint-config-o2team-wx
备注o2team-wx 这一套规则是参考了 StandardJS Airbnb JS 规范然后结合业务中的最佳实践整理输出的
### 其他相关资料
1百度前端团队-前端各类规范集合https://github.com/ecomfe/spec
2The mother of all demo appshttps://github.com/gothinkster/realworld
3JavaScript 代码规范https://github.com/standard/standard/blob/master/docs/README-zhcn.md
### 参考链接
文案编程Git 风格规范汇总https://www.bihell.com/article/130
githubStarshttps://blog.teefing.top/posts/2019/05/27/githubstars.html
## 其他链接
- <http://blog.lovebug.cn/details/html/page02.html> - <http://blog.lovebug.cn/details/html/page02.html>

View File