diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-12 20:08:49 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-12 20:08:49 +0300 |
commit | 755889e7c1c74b0bd7677fc513d04473689eaf57 (patch) | |
tree | 9d2cae8d264223999128323cb422e404d1ae5791 /package.json | |
parent | 0ecf99e2749fe60a20e86b266c6019ebb56e021a (diff) | |
download | which-api-755889e7c1c74b0bd7677fc513d04473689eaf57.tar.gz |
style: configure eslint
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 11 |
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" } } |