chore: improve eslint no-unused-vars rule

This commit is contained in:
Matthias 2024-08-07 07:00:04 +02:00
parent 2eef3d9e02
commit d19a0f3226
2 changed files with 9 additions and 2 deletions

View File

@ -30,7 +30,14 @@ export default [
// // disable eslint no-shadow as it's causing false positives on typescript enums
// 'no-shadow': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^err|^error',
},
],
// Custom vue rules
'vue/block-lang': [

View File

@ -169,7 +169,7 @@ async function loadPlotConfigFromStrategy() {
if (botStore.activeBot.strategyPlotConfig) {
plotStore.editablePlotConfig = botStore.activeBot.strategyPlotConfig;
}
} catch (data) {
} catch (error) {
//
showAlert('Failed to load Plot configuration from Strategy.');
}