28 Commits

Author SHA1 Message Date
Cohee 4d1619ba47 Chore: enable brace-style eslint check (#5159)
* eslint: enable brace-style check

* Fix jsdoc and color

* fix: correct CSS color syntax in CreateZenSliders function
2026-02-15 01:46:32 +02:00
Cohee 357da3219b Chore: Add code formatting conventions as eslint rules (#5158)
* Add code formatting conventions as eslint rules

* Improve formatting in addQuickReply
2026-02-15 01:16:34 +02:00
DeclineThyself a09c1a7a84 Added 'dot-notation': ['error'] to .eslint.cjs (#5042)
* Added 'dot-notation': ['error'], to `.eslint.cjs`

* Ran `eslint --fix` to correct `dot-notation` errors.

* Added `eslint-disable dot-notation` anywhere errors were caused.

* Allowed dot-notation for uppercase properties: 'allowPattern': '[A-Z]\\w*$'

* Check if `rule instanceof CSSStyleRule`
https://github.com/SillyTavern/SillyTavern/pull/5042#discussion_r2711827148

* Fixed `await result.json();` types.

* refactor: update dot-notation usage in CoquiTtsProvider and PresetManager

---------

Co-authored-by: user <user@exmaple.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2026-01-23 00:11:03 +02:00
Cohee 0af4a3ebd7 Fix unfixable lints 2025-03-19 21:10:42 +02:00
felger e23f3a6314 feature: 'kokoro-js' supports TTS #3412 (#3656)
* feature: 'kokoro-js' supports TTS #3412

* Linting, add credits for kokoro library

* Fix voice preview

* Fix display languages on previews

* Fix settings restoration. Debounce model init on settings change

* Fix engine sorting

* Move TTS processing to a web worker. Remove unused gain setting

* Speaking rate fix

* Update status when recreating a worker

* Pass voices list from TTS engine

* Call dispose function on provider change

* Extend worker init timeout to 10 minutes

---------

Co-authored-by: ryan <1014670860@qq.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-10 22:54:54 +02:00
Cohee 8508c4bf9b eslint: allow irregular whitespace in template literals 2024-12-31 22:58:51 +02:00
valadaptive 8bf78ce9cb Enable no-unneeded-ternary ESLint rule 2024-12-31 03:43:49 -05:00
Cohee 77841dbc21 Add types for SillyTavern.getContext 2024-12-06 16:41:26 +02:00
Cohee 74844d5989 eslint: Allow Deno global 2024-10-18 11:33:37 +00:00
Cohee a32dd436d7 Node: Replace global with globalThis 2024-10-18 09:13:25 +00:00
Cohee 2620522333 Revert epubjs vendoring 2024-10-17 20:59:42 +03:00
Cohee e48cf68a13 Revert pdfjsLib vendoring 2024-10-17 20:53:18 +03:00
Cohee b6f9c6480b unvendor: Move formula rendering from core to extensions 2024-10-17 10:08:00 +00:00
Cohee e9a002bc2b unvendor: Replace droll 2024-10-17 08:12:28 +00:00
Cohee ec4763b0c5 unvendor: Replace popperjs/core 2024-10-17 08:03:58 +00:00
Cohee 81bdeb6da8 unvendor: Replace moment 2024-10-17 02:02:45 +03:00
Cohee 7b0f7306c0 unvendor: Replace showdown 2024-10-17 01:51:35 +03:00
Cohee 8b8f2f1144 unvendor: Replace SVGInject 2024-10-17 01:39:15 +03:00
Cohee ca844c8b0a unvendor: Replace Readability 2024-10-17 01:30:04 +03:00
Cohee b195983510 unvendor: Replace diff_match_patch 2024-10-17 01:23:22 +03:00
Cohee a32fe00e34 unvendor: Replace pdfjs-dist 2024-10-17 01:16:39 +03:00
Cohee 553920ee8e unvendor: Replace epubjs 2024-10-17 01:03:33 +03:00
Cohee d5fdf307c8 unvendor: Replace handlebars 2024-10-17 00:34:07 +03:00
Cohee 1c4e87b25b unvendor: Replace localforage 2024-10-16 23:37:54 +03:00
Cohee 416282ae1f unvendor: Replace hljs 2024-10-16 23:18:23 +03:00
Cohee 3387fe4bd6 unvendor: Replace DOMPurify 2024-10-16 23:11:13 +03:00
Cohee e6d8f0a33e unvendor: Replace Fuse 2024-10-16 22:15:38 +03:00
Cohee 1c3d33c282 [eslint] Fix commonjs module config 2024-10-13 14:01:41 +03:00