增加了eslint规则和logger
Showing
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
.eslintrc.json
deleted
100644 → 0
config/logger.js
0 → 100644
logs/.gitignore
0 → 100644
This diff is collapsed.
| ... | @@ -7,17 +7,28 @@ | ... | @@ -7,17 +7,28 @@ |
| "js-yaml": "^3.12.1", | "js-yaml": "^3.12.1", | ||
| "koa": "^2.6.2", | "koa": "^2.6.2", | ||
| "koa-bodyparser": "^4.2.1", | "koa-bodyparser": "^4.2.1", | ||
| "koa-log4": "^2.3.2", | |||
| "koa-router": "^7.4.0", | "koa-router": "^7.4.0", | ||
| "lodash": "^4.17.11", | "lodash": "^4.17.11", | ||
| "log4js": "^4.0.2", | |||
| "request": "^2.88.0" | "request": "^2.88.0" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "eslint": "^5.15.3", | |||
| "eslint-config-airbnb-base": "^13.1.0", | |||
| "eslint-plugin-import": "^2.16.0", | |||
| "nodemon": "^1.18.9" | "nodemon": "^1.18.9" | ||
| }, | }, | ||
| "scripts": { | "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1", | "test": "echo \"Error: no test specified\" && exit 1", | ||
| "start": "NODE_DEBUG=request nodemon" | "start": "NODE_DEBUG=request NODE_ENV=env nodemon", | ||
| "lint": "eslint .", | |||
| "fix": "eslint --fix ." | |||
| }, | }, | ||
| "pre-commit": [ | |||
| "fix", | |||
| "lint" | |||
| ], | |||
| "repository": { | "repository": { | ||
| "type": "git", | "type": "git", | ||
| "url": "git@git.quantgroup.cn:QA/tke-eos.git" | "url": "git@git.quantgroup.cn:QA/tke-eos.git" | ||
| ... | ... |
Please register or sign in to comment