mirror of
https://github.com/freqtrade/frequi.git
synced 2024-09-20 01:21:08 +00:00
chore: improve eslint no-unused-vars rule
This commit is contained in:
parent
2eef3d9e02
commit
d19a0f3226
|
@ -30,7 +30,14 @@ export default [
|
||||||
// // disable eslint no-shadow as it's causing false positives on typescript enums
|
// // disable eslint no-shadow as it's causing false positives on typescript enums
|
||||||
// 'no-shadow': 'off',
|
// 'no-shadow': 'off',
|
||||||
'@typescript-eslint/no-explicit-any': 'warn',
|
'@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
|
// Custom vue rules
|
||||||
|
|
||||||
'vue/block-lang': [
|
'vue/block-lang': [
|
||||||
|
|
|
@ -169,7 +169,7 @@ async function loadPlotConfigFromStrategy() {
|
||||||
if (botStore.activeBot.strategyPlotConfig) {
|
if (botStore.activeBot.strategyPlotConfig) {
|
||||||
plotStore.editablePlotConfig = botStore.activeBot.strategyPlotConfig;
|
plotStore.editablePlotConfig = botStore.activeBot.strategyPlotConfig;
|
||||||
}
|
}
|
||||||
} catch (data) {
|
} catch (error) {
|
||||||
//
|
//
|
||||||
showAlert('Failed to load Plot configuration from Strategy.');
|
showAlert('Failed to load Plot configuration from Strategy.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user