lint: infix spacing

This commit is contained in:
Cohee 2023-12-06 22:08:06 +02:00
parent ea7720a7de
commit 5e282ac7b4
2 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ module.exports = {
'eol-last': ['error', 'always'],
'no-trailing-spaces': 'error',
'object-curly-spacing': ['error', 'always'],
'space-infix-ops': 'error',
// These rules should eventually be enabled.
'no-async-promise-executor': 'off',

View File

@ -2,7 +2,7 @@ import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessa
import { extension_settings, saveMetadataDebounced } from './extensions.js';
import { executeSlashCommands, registerSlashCommand } from './slash-commands.js';
function getLocalVariable(name, args={}) {
function getLocalVariable(name, args = {}) {
if (!chat_metadata.variables) {
chat_metadata.variables = {};
}
@ -30,7 +30,7 @@ function setLocalVariable(name, value) {
return value;
}
function getGlobalVariable(name, args={}) {
function getGlobalVariable(name, args = {}) {
let globalVariable = extension_settings.variables.global[name];
if (args.index !== undefined) {
try {