cs-notes
cs-notes copied to clipboard
计算机相关知识系统整理
CS-Notes
- 主页:
https://ringcrl.github.io/cs-notes
- 静态页:
https://ringcrl.github.io/cs-notes/playground/<path_to_html>
代码规范
# 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",
}
}
}