aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-12 20:08:49 +0300
committereug-vs <eug-vs@keemail.me>2020-06-12 20:08:49 +0300
commit755889e7c1c74b0bd7677fc513d04473689eaf57 (patch)
tree9d2cae8d264223999128323cb422e404d1ae5791 /package.json
parent0ecf99e2749fe60a20e86b266c6019ebb56e021a (diff)
downloadwhich-api-755889e7c1c74b0bd7677fc513d04473689eaf57.tar.gz
style: configure eslint
Diffstat (limited to 'package.json')
-rw-r--r--package.json11
1 files changed, 9 insertions, 2 deletions
diff --git a/package.json b/package.json
index 24616e9..903d2b0 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,8 @@
"version": "1.0.0",
"main": "index.ts",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "lint": "eslint . --ext ts --max-warnings 0",
+ "test": "npm run lint"
},
"keywords": [],
"author": "",
@@ -31,6 +32,12 @@
"@types/bluebird": "^3.5.32",
"@types/cors": "^2.8.6",
"@types/lodash": "^4.14.155",
- "@types/mongoose": "^5.7.23"
+ "@types/mongoose": "^5.7.23",
+ "@typescript-eslint/eslint-plugin": "^3.2.0",
+ "@typescript-eslint/parser": "^3.2.0",
+ "eslint": "^7.2.0",
+ "eslint-config-airbnb-typescript": "^8.0.2",
+ "eslint-plugin-import": "^2.21.2",
+ "typescript": "^3.9.5"
}
}