Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 663 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 663 Bytes

CS-Notes

  • 主页:https://ringcrl.github.io/cs-notes
  • 静态页:https://ringcrl.github.io/cs-notes/playground/<path_to_html>

代码规范

JavaScript Standard Style

# standard 依赖
npm install standard ts-standard --save-dev

# vsc 插件:StandardJS

# vsc 配置:.vscode/settings.json
{
  "standard.autoFixOnSave": true,
  "standard.nodePath": "/Users/ringcrl/.nvm/versions/node/v16.15.1/bin/node",
}

# standard 配置,参考 package.json

提交校验

npm install husky --save-dev

# package.json
{
  "husky": {
    "hooks": {
      "pre-commit": "npm test",
    }
  }
}