Fix @typescript-eslint/await-thenable errors

This commit is contained in:
Labhansh Agrawal 2021-03-28 21:16:38 +05:30
parent 570aab63e4
commit b9aa271bfc
3 changed files with 4 additions and 3 deletions

View file

@ -104,7 +104,6 @@
"@typescript-eslint/ban-types": "off", "@typescript-eslint/ban-types": "off",
"no-shadow": "off", "no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"], "@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off",

View file

@ -29,8 +29,8 @@ async function init() {
console.error('Error fetching updates', `${err.message} (${err.stack})`); console.error('Error fetching updates', `${err.message} (${err.stack})`);
}); });
const config = await retry(async () => { const config = await retry(() => {
const content = await getDecoratedConfig(); const content = getDecoratedConfig();
if (!content) { if (!content) {
throw new Error('No config content loaded'); throw new Error('No config content loaded');

View file

@ -1,3 +1,5 @@
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable @typescript-eslint/await-thenable */
// Native // Native
import path from 'path'; import path from 'path';
import fs from 'fs-extra'; import fs from 'fs-extra';