Enable eslint rule to disallow awaiting a non-thenable type
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user