diff --git a/browser/.eslintrc b/browser/.eslintrc index afe6416027..a274e41045 100644 --- a/browser/.eslintrc +++ b/browser/.eslintrc @@ -18,11 +18,6 @@ "no-debugger": 1, "no-unreachable": 1, "no-unused-vars": 1, - "semi": 2, - "comma-style": 2, - "quotes": [2, "single"], - "space-before-blocks": 2, - "keyword-spacing": 2 }, "globals": { "L": true, diff --git a/browser/src/control/Control.MobileBottomBar.js b/browser/src/control/Control.MobileBottomBar.js index 38ab0cfc44..5ad2c5af01 100644 --- a/browser/src/control/Control.MobileBottomBar.js +++ b/browser/src/control/Control.MobileBottomBar.js @@ -15,7 +15,7 @@ /* global JSDialog _ _UNO */ class MobileBottomBar extends JSDialog.Toolbar { constructor(map) { - super(map, 'toolbar-down'); + super(map, 'toolbar-down') map.on('commandstatechanged', window.onCommandStateChanged); map.on('updatetoolbarcommandvalues', window.onCommandStateChanged); diff --git a/browser/src/control/Control.Toolbar.js b/browser/src/control/Control.Toolbar.js index 15cd98d4e3..3f4fcae1d7 100644 --- a/browser/src/control/Control.Toolbar.js +++ b/browser/src/control/Control.Toolbar.js @@ -207,7 +207,7 @@ var sendInsertTableFunction = function(event) { var col = $(event.target).index() + 1; var row = $(event.target).parent().index() + 1; $('.col').removeClass('bright'); - var status = $('#inserttable-status'); + var status = $('#inserttable-status') status.html('
'); var msg = 'uno .uno:InsertTable {' + ' "Columns": { "type": "long","value": ' @@ -225,7 +225,7 @@ var highlightTableFunction = function(event) { $('.col').removeClass('bright'); $('.row:nth-child(-n+' + row + ') .col:nth-child(-n+' + col + ')') .addClass('bright'); - var status = $('#inserttable-status'); + var status = $('#inserttable-status') status.html(col + 'x' + row); }; diff --git a/browser/src/control/Control.UIManager.js b/browser/src/control/Control.UIManager.js index 1f2d6f78ab..553a5aa6a8 100644 --- a/browser/src/control/Control.UIManager.js +++ b/browser/src/control/Control.UIManager.js @@ -1711,7 +1711,7 @@ L.Control.UIManager = L.Control.extend({ var elem = $(element); if (window.mode.isDesktop()) { elem.tooltip(); - elem.on('mousedown', function() { + elem.on("mousedown", function() { $('.ui-tooltip').fadeOut(function() { $(this).remove(); }); diff --git a/browser/src/control/Control.UserList.ts b/browser/src/control/Control.UserList.ts index eb3d6baeda..2062e9bb52 100644 --- a/browser/src/control/Control.UserList.ts +++ b/browser/src/control/Control.UserList.ts @@ -88,7 +88,7 @@ class UserList extends L.Control { const user = this.users.get(viewId); if (user === undefined) { - console.debug('User doesn\'t exist: ' + viewId); + console.debug("User doesn't exist: " + viewId); return; } @@ -372,7 +372,7 @@ class UserList extends L.Control { const user = this.users.get(e.viewId); if (user === undefined) { - console.debug('User doesn\'t exist: ' + e.viewId); + console.debug("User doesn't exist: " + e.viewId); return; } diff --git a/browser/src/map/Clipboard.js b/browser/src/map/Clipboard.js index ccd5f15a4e..102966173f 100644 --- a/browser/src/map/Clipboard.js +++ b/browser/src/map/Clipboard.js @@ -809,7 +809,7 @@ L.Clipboard = L.Class.extend({ 'text/html': fetch(url) .then(response => response.text()) .then(function(text) { - const type = 'text/html'; + const type = "text/html"; const content = that.parseClipboard(text)['html']; const blob = new Blob([content], { 'type': type }); return blob;