Fixes ESLint errors (#9668)

* fix: apply automatic eslint fixes

* lint: allow hashbang comment for tiddlywiki.js

* lint: first back of manual lint fixes for unused vars

* lint: added more fixes for unused vars

* lint: missed files

* lint: updated eslint config with selected rules from #9669
This commit is contained in:
Saq Imtiaz
2026-02-20 09:38:42 +01:00
committed by GitHub
parent 08f2b8bdf4
commit 785086e0a5
270 changed files with 3827 additions and 3970 deletions

View File

@@ -94,7 +94,7 @@ TranscludeWidget.prototype.execute = function() {
this.setVariable("transclusion",recursionMarker);
// Parse
var text = this.wiki.getTiddlerText(this.transcludeTitle);
if (!!this.section||!!this.slice) {
if(!!this.section||!!this.slice) {
text =this.refineTiddlerText(text, this.section, this.slice);
}
@@ -151,8 +151,7 @@ TranscludeWidget.prototype.getTextSlice = function(text,sliceName)
TranscludeWidget.prototype.refineTiddlerText = function(text,section,slice)
{
var textsection = null;
if (slice) {
if(slice) {
var textslice = this.getTextSlice(text,slice);
if(textslice)
return textslice;
@@ -172,7 +171,7 @@ TranscludeWidget.prototype.refineTiddlerText = function(text,section,slice)
return t;
}
return "";
}
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering