mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable no-regex-spaces lint
I noticed the old code was replacing two spaces with one space, over and over. Instead, I changed it to remove all consecutive strings of spaces just once, using the "+" quantifier. This should behave the same but is nicer to read and faster.
This commit is contained in:
@@ -70,7 +70,6 @@ module.exports = {
|
||||
'no-empty': 'off',
|
||||
'no-unsafe-finally': 'off',
|
||||
'no-dupe-keys': 'off',
|
||||
'no-irregular-whitespace': 'off',
|
||||
'no-regex-spaces': 'off'
|
||||
'no-irregular-whitespace': 'off'
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user