提交 83ebe6d2 编写于 作者: B binaryify

improve eslint

上级 b98d6119
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
"start": "node app.js", "start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit", "test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ " "lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
}, },
"keywords": [ "keywords": [
"网易云音乐", "网易云音乐",
...@@ -14,6 +13,17 @@ ...@@ -14,6 +13,17 @@
"音乐", "音乐",
"网易云音乐nodejs" "网易云音乐nodejs"
], ],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"author": "binaryify", "author": "binaryify",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
...@@ -25,7 +35,9 @@ ...@@ -25,7 +35,9 @@
"devDependencies": { "devDependencies": {
"eslint": "^6.1.0", "eslint": "^6.1.0",
"eslint-config-standard": "^13.0.1", "eslint-config-standard": "^13.0.1",
"husky": "^3.0.3",
"intelli-espower-loader": "^1.0.1", "intelli-espower-loader": "^1.0.1",
"lint-staged": "^9.2.1",
"mocha": "^6.1.4", "mocha": "^6.1.4",
"power-assert": "^1.6.1" "power-assert": "^1.6.1"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册