diff --git a/.eslintrc b/.eslintrc index 6e14dc9..5e5eda4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,11 +9,11 @@ "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json", - "ecmaVersion": 2018 + "ecmaVersion": 2017 }, "env": { "node": true, "es6": true }, - "plugins": ["@typescript-eslint", "prettier", "node"], + "plugins": ["@typescript-eslint", "prettier", "node", "async-await"], "rules": { "@typescript-eslint/no-use-before-define": 0, "@typescript-eslint/camelcase": 0, diff --git a/package.json b/package.json index b1d1acc..37511bd 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@typescript-eslint/parser": "^2.17.0", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", + "eslint-plugin-async-await": "^0.0.0", "eslint-plugin-node": "^11.0.0", "eslint-plugin-prettier": "^3.1.2", "prettier": "^1.19.1", diff --git a/yarn.lock b/yarn.lock index d3fd2ae..b9637a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -709,6 +709,11 @@ eslint-config-prettier@^6.10.0: dependencies: get-stdin "^6.0.0" +eslint-plugin-async-await@^0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-async-await/-/eslint-plugin-async-await-0.0.0.tgz#0f2ae17a3814780635d48f2409df9e37898ca09f" + integrity sha1-DyrhejgUeAY11I8kCd+eN4mMoJ8= + eslint-plugin-es@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.0.tgz#98cb1bc8ab0aa807977855e11ad9d1c9422d014b"