GithubHelp home page GithubHelp logo

CodeGuide

AlloyTeam代码规范

1. 为什么要有团队代码规范?

虽然这些细节是小事,不会有体验或者性能上的优化,但是却体现了一个coder和团队的专业程度 团队的愿景:成为业界卓越的Web团队!
所以不管团队有多少人,代码风格都应该师出同门!

2. 如何使用?

在使用之前花一点时间把规范看一遍是很必要的,
然后按照这里的步骤配置好编辑器和构建检查(目前仅提供了sublime3和grunt的配置)

主要使用到了jscs,jshint,sass-lint,csslint 四个规范检查插件,
JsFormat(它其实用的是jsbeautifier),CSScomb两个格式化的插件,
使用其他编辑器的话可以自己去搜一下相关的这些插件。

配置好后,保存的时候可以看到不合规范的代码行前面有明显的提示:

将光标移到该行,可以在状态栏中看到详细的错误信息:

建议在修改这些错误之前,js文件用JsFormat格式化一下(ctrl+alt+f),css文件用CSScomb格式化一下(ctrl+shift+c),可以减少很多工作量。

3. 觉得不合理或者有遗漏的地方?

如果觉得有不合理或者遗漏的地方,请访问这里

johnnyfly's Projects

admin.core icon admin.core

Admin后端,前后端分离的权限管理系统。支持多租户、动态Api、任务调度、滑块拼图验证、国内外主流数据库自由切换和动态高级查询。基于.Net跨平台开发的WebApi。集成统一认证授权、数据验证、缓存、Ip限流、全Api鉴权、集成测试、性能分析、接口文档等。

amis-editor icon amis-editor

amis 可视化编辑器在线工具 http://fex-team.github.io/amis-editor

angular2 icon angular2

官方教程配套(angular)源码(ng-book2)同步更新:ng-book2 source code (keywords:angular angular2 )

apijsonauto icon apijsonauto

自动化接口管理工具,自动生成文档与注释、自动生成代码、自动化回归测试、自动静态检查等。

appflowy icon appflowy

AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.

approvalflow icon approvalflow

基于form-generator,仿钉钉审批流程创建(表单创建/流程节点可视化配置/必填条件及校验)

blog icon blog

没事写写文章,喜欢的话请点star,想订阅点watch,千万别fork!

bootstrap-table icon bootstrap-table

An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3)

brickstore icon brickstore

An offline BrickLink inventory management tool.

caching icon caching

[Archived] Libraries for in-memory caching and distributed caching. Project moved to https://github.com/aspnet/Extensions

coupons icon coupons

美团饿了吗红包,先领红包再下单。外卖红包,cps分成,别人领红包下单,你拿佣金。

cropper icon cropper

A simple jQuery image cropping plugin.

cs-notes icon cs-notes

:books: Tech Interview Guide 技术面试必备基础知识、Leetcode 题解、Java、C++、Python、后端面试、操作系统、计算机网络、系统设计

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.