Remove module function wrapper and add matching configurations for dprint and eslint (#7596)

* remove blks first try

* dprint.json seems to be OK, some forgotten functions

* add some more space-after-keyword settings

* server remove blks

* add **/files to dprint exclude

* dprint.js fixes a typo

* add boot.js and bootprefix.js to dprint exclude

* dprint change dprint.json

* add dprint fmt as script

* remove jslint comments

* fix whitespace

* fix whitespace

* remove function-wrapper from geospatial plugin

* fix whitespace

* add function wrapper to dyannotate-startup

* remove dpring.json
This commit is contained in:
Mario Pietsch
2025-03-21 18:22:57 +01:00
committed by GitHub
parent 819d84ecab
commit 8aa558eb2c
511 changed files with 385 additions and 2505 deletions

View File

@@ -6,10 +6,7 @@ module-type: widget
Dynannotate widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var TextMap = require("$:/plugins/tiddlywiki/dynannotate/textmap.js").TextMap;
@@ -433,5 +430,3 @@ DynannotateWidget.prototype.refresh = function(changedTiddlers) {
};
exports.dynannotate = DynannotateWidget;
})();

View File

@@ -7,9 +7,6 @@ Manages the element spotlight effect
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
function ElementSpotlight() {

View File

@@ -6,10 +6,7 @@ module-type: library
Legacy version of the dyannotate background daemon to track the selection
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var TextMap = require("$:/plugins/tiddlywiki/dynannotate/textmap.js").TextMap;
@@ -100,5 +97,3 @@ LegacySelectionTracker.prototype.findSelectionContainer = function findSelection
};
exports.LegacySelectionTracker = LegacySelectionTracker;
})();

View File

@@ -6,10 +6,7 @@ module-type: library
Background daemon to track the selection
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
function SelectionTracker(wiki,options) {
@@ -167,5 +164,3 @@ SelectionTracker.prototype.performSelectionActions = function(chunks,variables,a
};
exports.SelectionTracker = SelectionTracker;
})();

View File

@@ -10,8 +10,6 @@ Startup the dyannotate background daemon to track the selection
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
// Export name and synchronous status
@@ -60,4 +58,3 @@ exports.startup = function() {
};
})();

View File

@@ -6,10 +6,7 @@ module-type: library
Structure for modelling mapping between a string and its representation in the DOM
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var PREFIX_SUFFIX_LENGTH = 50;
@@ -178,5 +175,3 @@ exports.TextMap.prototype.extractContext = function(startContainer,startOffset,t
suffix: this.string.slice(startPos + text.length, Math.min(startPos + text.length + PREFIX_SUFFIX_LENGTH, this.string.length))
};
};
})();