diff --git a/.eslintrc.json b/.eslintrc.json index d4512a4..f986df5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -35,7 +35,6 @@ "@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-includes": "error", "@typescript-eslint/prefer-string-starts-ends-with": "error", - "@typescript-eslint/promise-function-async": "error", "@typescript-eslint/require-array-sort-compare": "error", "@typescript-eslint/restrict-plus-operands": "error", "semi": "off", diff --git a/src/wait.ts b/src/wait.ts index 480b815..d2c7c34 100644 --- a/src/wait.ts +++ b/src/wait.ts @@ -1,5 +1,4 @@ -// eslint-disable-next-line require-await -export async function wait(milliseconds: number): Promise { +export function wait(milliseconds: number): Promise { return new Promise(resolve => { if (isNaN(milliseconds)) { throw new Error('milliseconds not a number');