非常教程

Standard JS 参考手册

快速开始 | quick start

What you might do if you're clever

如果你聪明,你可能会做什么

  1. 添加到 package.json
{  "name": "my-cool-package",  "devDependencies": {    "standard": "*"  },  "scripts": {    "test": "standard && node my-tests.js"  }}
  1. 运行时会自动检查样式 npm test
$ npm testError: Use JavaScript Standard Style  lib/torrent.js:950:11: Expected '===' and instead saw '=='.
  1. 永远不要再提出拉动请求的样式反馈!

快速开始 | quick start 相关

Standard JS

JavaScript 代码规范,自带 linter & 代码自动修正,可以帮助你(及你的团队)节省大量时间

Standard JS 目录

1.快速开始 | quick start
2.常见问题 | FAQ
3.规则 | Rules
4.系统 | Ecosystem