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 08:38:42 +00:00
committed by GitHub
parent 08f2b8bdf4
commit 785086e0a5
270 changed files with 3827 additions and 3970 deletions
+5 -5
View File
@@ -56,7 +56,7 @@ FieldsWidget.prototype.execute = function() {
var text = [];
if(this.template && tiddler) {
var fields = [];
if (includeArr) { // Include takes precedence
if(includeArr) { // Include takes precedence
for(var i=0; i<includeArr.length; i++) {
if(tiddler.fields[includeArr[i]]) {
fields.push(includeArr[i]);
@@ -69,8 +69,8 @@ FieldsWidget.prototype.execute = function() {
}
}
}
if (this.sort) fields.sort();
if (this.sortReverse) fields.reverse();
if(this.sort) fields.sort();
if(this.sortReverse) fields.reverse();
for(var f=0, fmax=fields.length; f<fmax; f++) {
fieldName = fields[f];
var row = this.template,
@@ -99,8 +99,8 @@ FieldsWidget.prototype.refresh = function(changedTiddlers) {
if( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude ||
changedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse ||
changedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) {
this.refreshSelf();
return true;
this.refreshSelf();
return true;
} else {
return false;
}