Enable eslint rule to disallow awaiting a non-thenable type

This commit is contained in:
Robert
2023-02-14 17:10:16 +00:00
parent 851a42f5e3
commit 950a218c29
2 changed files with 2 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ const baseConfig = {
"plugin:@typescript-eslint/recommended",
],
rules: {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-unused-vars": [
"warn",

View File

@@ -462,7 +462,7 @@ export async function activate(
) {
registerErrorStubs([checkForUpdatesCommand], (command) => async () => {
const installActionName = "Install CodeQL CLI";
const chosenAction = await void showAndLogErrorMessage(
const chosenAction = await showAndLogErrorMessage(
`Can't execute ${command}: missing CodeQL CLI.`,
{
items: [installActionName],