Git Product home page Git Product 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

investool icon investool

Golang实现财报分析、个股基本面检测、基本面选股、4433法则基金筛选与检测、基金持仓相似度、股票选基、基金经理筛选

jd-price-protect-puppeteer icon jd-price-protect-puppeteer

发现京东价格变动太频繁了,一不小心就买到高价了,京东保价,登录京东账号,自动比较可保价物品和当前价格,如果高于当前价格,申请保价

jd-shopper icon jd-shopper

京东自动下单 (自动登录,指定时间预约商品,商品补货监控,自动加购物车,自动下单)

jquery-file-upload icon jquery-file-upload

File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.

jsproxy icon jsproxy

一个基于浏览器端 JS 实现的在线代理

kkfileview icon kkfileview

使用spring boot打造文件文档在线预览项目解决方案,支持doc、docx、ppt、pptx、xls、xlsx、zip、rar、mp4,mp3以及众多类文本如txt、html、xml、java、properties、sql、js、md、json、conf、ini、vue、php、py、bat、gitignore等文件在线预览

laohuangli icon laohuangli

老黄历微信小程序,支持宜/忌事项查阅

layui icon layui

采用自身模块规范编写的前端 UI 框架,遵循原生 HTML/CSS/JS 的书写形式,极低门槛,拿来即用。

layui-soul-table icon layui-soul-table

layui-table 表头筛选、列顺序调整、列快速隐藏、excel导出等

lemon-cleaner icon lemon-cleaner

腾讯柠檬清理是针对macOS系统专属制定的清理工具。主要功能包括重复文件和相似照片的识别、软件的定制化垃圾扫描、可视化的全盘空间分析、内存释放、浏览器隐私清理以及设备实时状态的监控等。重点聚焦清理功能,对上百款软件提供定制化的清理方案,提供专业的清理建议,帮助用户轻松完成一键式清理。

lowcode-engine icon lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系

luban-h5 icon luban-h5

en: A mobile page builder/editor, similar with amolink. zh: 类似易企秀的H5制作、建站工具.

magiskonwsa icon magiskonwsa

Integrate Magisk root and Google Apps (OpenGApps) into WSA (Windows Subsystem for Android)

mark-highlight icon mark-highlight

mark-highlight is a simple tool,Highlight the content | mark-highlight 是一个简单的小工具,可以对选择的内容进行划线 高亮

mark-mind icon mark-mind

MarkMind — a mind map and outliner editor for Windows, Mac, Linux, andriod and ios ,it support markdown in node.

merger-plus icon merger-plus

💸一键从电脑/手机跳转至支付宝/微信支付的能力,帮助个人开发者完成打赏功能实现。

ncf icon ncf

NeuCharFramework Template Project

ng-alain icon ng-alain

ng-zorro-antd admin panel front-end framework

ng-zorro-antd icon ng-zorro-antd

An enterprise-class UI components based on Ant Design and Angular 7. 🐜

ng2-admin-lte icon ng2-admin-lte

Bootstraping of Angular2 with AdminLTE dashboard template (using angular2 final,router v3, angular-cli and ng2-bootstrap )

ngformio icon ngformio

JSON powered form rendering library for Angular.js + Form.io.

ngx-permissions icon ngx-permissions

Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible

ngx-quill icon ngx-quill

Angular (>=2) components for the Quill Rich Text Editor

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.