What you might do if you're clever
如果你聪明,你可能会做什么
- 添加到
package.json
{ "name": "my-cool-package", "devDependencies": { "standard": "*" }, "scripts": { "test": "standard && node my-tests.js" }}
- 运行时会自动检查样式
npm test
$ npm testError: Use JavaScript Standard Style lib/torrent.js:950:11: Expected '===' and instead saw '=='.
- 永远不要再提出拉动请求的样式反馈!