加入 Prettier
Showing
.pre-commit-config.yaml
0 → 100644
{ | { | ||
"name": "NeteaseCloudMusicApi", | "name": "NeteaseCloudMusicApi", | ||
"version": "2.6.5", | "version": "2.6.6", | ||
"description": "网易云音乐 NodeJS 版 API", | "description": "网易云音乐 NodeJS 版 API", | ||
"scripts": { | "scripts": { | ||
"start": "node app.js", | "start": "node app.js", | ||
"test": "mocha -r intelli-espower-loader -t 20000 test" | "test": "mocha -r intelli-espower-loader -t 20000 test", | ||
"precommit": "lint-staged" | |||
}, | |||
"lint-staged": { | |||
"*.js": [ | |||
"prettier --write", | |||
"git add" | |||
] | |||
}, | }, | ||
"keywords": [ | "keywords": [ | ||
"网易云音乐", | "网易云音乐", | ||
... | @@ -21,8 +28,11 @@ | ... | @@ -21,8 +28,11 @@ |
"request": "^2.81.0" | "request": "^2.81.0" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"husky": "^0.14.3", | |||
"intelli-espower-loader": "^1.0.1", | "intelli-espower-loader": "^1.0.1", | ||
"lint-staged": "^4.0.3", | |||
"mocha": "^3.2.0", | "mocha": "^3.2.0", | ||
"power-assert": "^1.4.2" | "power-assert": "^1.4.2", | ||
"prettier": "^1.5.3" | |||
} | } | ||
} | } |
想要评论请 注册 或 登录