From a7bbf6a07c8697999f9983f059b1d74a0cd62e7a Mon Sep 17 00:00:00 2001 From: paulober <44974737+paulober@users.noreply.github.com> Date: Sun, 17 Nov 2024 20:19:59 +0100 Subject: [PATCH] Fix eslint cfg Signed-off-by: paulober <44974737+paulober@users.noreply.github.com> --- eslint.config.mjs | 3 +++ src/activitybar/deviceWifiTree.mts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 3239efa..4b63115 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -39,6 +39,9 @@ export default tseslint.config( "@typescript-eslint/naming-convention": "warn", "@typescript-eslint/no-unused-vars": "warn", "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-unused-expressions": ["error", { "allowShortCircuit": true }], + "@typescript-eslint/dot-notation": ["error", { "allowKeywords": true }], + "@typescript-eslint/no-empty-function": ["warn", { "allow": ["arrowFunctions"] }], "@typescript-eslint/array-type": ["error", { default: "array-simple" }], "@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports" }], "@typescript-eslint/explicit-function-return-type": ["error", { allowExpressions: true }], diff --git a/src/activitybar/deviceWifiTree.mts b/src/activitybar/deviceWifiTree.mts index 28b3741..8d53c78 100644 --- a/src/activitybar/deviceWifiTree.mts +++ b/src/activitybar/deviceWifiTree.mts @@ -251,7 +251,7 @@ export default class DeviceWifiProvider implements TreeDataProvider { } // eslint-disable-next-line @typescript-eslint/no-unused-vars - public async getChildren(element?: Wifi | undefined): Promise { + public async getChildren(element?: Wifi): Promise { const networks = await PicoMpyCom.getInstance().runCommand( DETECT_WIFIS_SCRIPT );