diff --git a/package.json b/package.json index 595ad20a..f5185bc5 100644 --- a/package.json +++ b/package.json @@ -62,14 +62,14 @@ "eslint-plugin-node": ">=9.1.0", "eslint-plugin-promise": ">=4.2.1", "eslint-plugin-standard": ">=4.0.0", - "@typescript-eslint/eslint-plugin": ">=1.12.0" + "@typescript-eslint/eslint-plugin": ">=1.13.0" }, "devDependencies": { "@commitlint/cli": "^8.1.0", "@commitlint/config-conventional": "^8.1.0", "@commitlint/travis-cli": "^8.1.0", "@types/node": "^12.7.1", - "@typescript-eslint/eslint-plugin": "^1.12.0", + "@typescript-eslint/eslint-plugin": "^1.13.0", "ava": "^2.2.0", "eslint": "^6.1.0", "eslint-plugin-import": "^2.18.2", diff --git a/src/index.test.ts b/src/index.test.ts index 06dbd698..c639e578 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -18,6 +18,7 @@ test('export', (t): void => { 'no-unused-vars': 'off', 'no-use-before-define': 'off', 'no-useless-constructor': 'off', + 'require-await': 'off', '@typescript-eslint/adjacent-overload-signatures': 'error', '@typescript-eslint/array-type': ['error', 'array-simple'], '@typescript-eslint/camelcase': ['error', { properties: 'never' }], @@ -56,6 +57,7 @@ test('export', (t): void => { '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-for-in-array': 'error', '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-misused-promises': 'error', '@typescript-eslint/no-namespace': 'error', '@typescript-eslint/no-non-null-assertion': 'error', '@typescript-eslint/no-object-literal-type-assertion': 'error', @@ -70,6 +72,7 @@ test('export', (t): void => { '@typescript-eslint/promise-function-async': 'error', '@typescript-eslint/restrict-plus-operands': 'error', '@typescript-eslint/require-array-sort-compare': 'error', + '@typescript-eslint/require-await': 'error', '@typescript-eslint/strict-boolean-expressions': 'error', '@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }], '@typescript-eslint/type-annotation-spacing': 'error' diff --git a/src/index.ts b/src/index.ts index 36800554..afacfb1d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,6 +17,7 @@ export = { 'no-unused-vars': 'off', 'no-use-before-define': 'off', 'no-useless-constructor': 'off', + 'require-await': 'off', // @typescript-eslint versions of Standard.js rules: '@typescript-eslint/camelcase': ['error', { properties: 'never' }], @@ -39,6 +40,7 @@ export = { '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], '@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: false, typedefs: false }], '@typescript-eslint/no-useless-constructor': 'error', + '@typescript-eslint/require-await': 'error', // New Typescript-only rules: '@typescript-eslint/adjacent-overload-signatures': 'error', @@ -62,6 +64,7 @@ export = { '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-for-in-array': 'error', '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-misused-promises': 'error', '@typescript-eslint/no-namespace': 'error', '@typescript-eslint/no-non-null-assertion': 'error', '@typescript-eslint/no-object-literal-type-assertion': 'error',