Enable no-self-assign lint

This commit is contained in:
valadaptive 2023-12-02 09:18:49 -05:00
parent c05aee8e72
commit 9204a31d32
3 changed files with 1 additions and 3 deletions

View File

@ -64,7 +64,6 @@ module.exports = {
'require-yield': 'off',
'no-case-declarations': 'off',
'use-isnan': 'off',
'no-self-assign': 'off',
'no-constant-condition': ['error', {checkLoops: false}]
}
};

View File

@ -115,7 +115,6 @@ class ElevenLabsTtsProvider {
await this.fetchTtsVoiceObjects().catch(error => {
throw `TTS API key validation failed`
})
this.settings.apiKey = this.settings.apiKey
console.debug(`Saved new API_KEY: ${this.settings.apiKey}`)
$('#tts_status').text('')
this.onSettingsChange()

View File

@ -1281,7 +1281,7 @@ export async function promptQuietForLoudResponse(who, text) {
} else if (who === 'char') {
text = characters[character_id].name + ": " + text;
} else if (who === 'raw') {
text = text;
// We don't need to modify the text
}
//text = `${text}${power_user.instruct.enabled ? '' : '\n'}${(power_user.always_force_name2 && who != 'raw') ? characters[character_id].name + ":" : ""}`