前端开发规范文档

内容具有一定的参考性,但不具备普遍性

目标

  • 减少个人色彩
  • 代码尽量标准化
  • 使团队代码书写尽量一致

工具

  • 工欲善其事必先利其器,建议给编辑器增加 lint 类插件,如:Eslint, Stylelint, Tslint
  • 为项目添加 .editorconfig 配置文件 editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
MIT Licensed | Copyright © 2019 - 2021 LeeRayno    👀:    👣: