mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-09 16:40:10 +01:00
Enable no-self-assign lint
This commit is contained in:
parent
c05aee8e72
commit
9204a31d32
@ -64,7 +64,6 @@ module.exports = {
|
|||||||
'require-yield': 'off',
|
'require-yield': 'off',
|
||||||
'no-case-declarations': 'off',
|
'no-case-declarations': 'off',
|
||||||
'use-isnan': 'off',
|
'use-isnan': 'off',
|
||||||
'no-self-assign': 'off',
|
|
||||||
'no-constant-condition': ['error', {checkLoops: false}]
|
'no-constant-condition': ['error', {checkLoops: false}]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -115,7 +115,6 @@ class ElevenLabsTtsProvider {
|
|||||||
await this.fetchTtsVoiceObjects().catch(error => {
|
await this.fetchTtsVoiceObjects().catch(error => {
|
||||||
throw `TTS API key validation failed`
|
throw `TTS API key validation failed`
|
||||||
})
|
})
|
||||||
this.settings.apiKey = this.settings.apiKey
|
|
||||||
console.debug(`Saved new API_KEY: ${this.settings.apiKey}`)
|
console.debug(`Saved new API_KEY: ${this.settings.apiKey}`)
|
||||||
$('#tts_status').text('')
|
$('#tts_status').text('')
|
||||||
this.onSettingsChange()
|
this.onSettingsChange()
|
||||||
|
@ -1281,7 +1281,7 @@ export async function promptQuietForLoudResponse(who, text) {
|
|||||||
} else if (who === 'char') {
|
} else if (who === 'char') {
|
||||||
text = characters[character_id].name + ": " + text;
|
text = characters[character_id].name + ": " + text;
|
||||||
} else if (who === 'raw') {
|
} 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 + ":" : ""}`
|
//text = `${text}${power_user.instruct.enabled ? '' : '\n'}${(power_user.always_force_name2 && who != 'raw') ? characters[character_id].name + ":" : ""}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user