Giter VIP home page Giter VIP logo

front-end-standards's Introduction

做一个有原则的前端程序猿

前言

良好的代码规范,在团队开发中是必不可少的,它可以让代码看起简洁清晰减少 bug 的出现,还可以让新加入的成员更快的上手项目,更能够让看代码的人赏心悦目。以下是我根据平时开发总结的编码规范,让我们做一个有原则的是前端程序猿!!!!!!!!!

团队注意事项(切记!切记!切记!)

1、开发过程中控制台遇错改错(尽量处理所有报错输出)
2、功能调试通过后必须删除所有测试代码,比如console.log
3、model框必须抽离成独立的组件
4、每次代码pull之后,必须重启项目,确保一切正常之后方可push,commit的时候必须描述清楚提交信息。
5、注释尽量写全乎,具体到人头上,格式如下

  /**
  * @description: 中文说明
  * @author: name
  * @update: name(xxxx-xx-xx)
  * @param {string} a - 参数a
  */

目录

  1. CSS 规范
  2. JS 规范
  3. VUE 规范

front-end-standards's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.