Enforce no trailing whitespace

This commit is contained in:
Pierre Ossman 2018-09-06 17:12:45 +02:00
parent 35068204f4
commit 4a16dc51a8
5 changed files with 6 additions and 5 deletions

View File

@ -36,5 +36,6 @@
"func-style": ["error", "declaration", { "allowArrowFunctions": true }], "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"key-spacing": ["error"], "key-spacing": ["error"],
"keyword-spacing": ["error"], "keyword-spacing": ["error"],
"no-trailing-spaces": ["error"],
} }
} }

View File

@ -1329,7 +1329,7 @@ const UI = {
// Move the caret to the end // Move the caret to the end
input.setSelectionRange(l, l); input.setSelectionRange(l, l);
} catch (err) { } catch (err) {
// setSelectionRange is undefined in Google Chrome // setSelectionRange is undefined in Google Chrome
} }
}, },

View File

@ -26,7 +26,7 @@ export function getQueryVar (name, defVal) {
const re = new RegExp('.*[?&]' + name + '=([^&#]*)'), const re = new RegExp('.*[?&]' + name + '=([^&#]*)'),
match = document.location.href.match(re); match = document.location.href.match(re);
if (typeof defVal === 'undefined') { defVal = null; } if (typeof defVal === 'undefined') { defVal = null; }
if (match) { if (match) {
return decodeURIComponent(match[1]); return decodeURIComponent(match[1]);
} }

View File

@ -1437,7 +1437,7 @@ export default class RFB extends EventTargetMixin {
case 2: // Bell case 2: // Bell
Log.Debug("Bell"); Log.Debug("Bell");
this.dispatchEvent(new CustomEvent( this.dispatchEvent(new CustomEvent(
"bell", "bell",
{ detail: {} })); { detail: {} }));
return true; return true;

View File

@ -34,7 +34,7 @@ module.exports = {
noCopyOverride: () => {}, noCopyOverride: () => {},
}, },
'commonjs': { 'commonjs': {
optionsOverride: (opts) => { optionsOverride: (opts) => {
// CommonJS supports properly shifting the default export to work as normal // CommonJS supports properly shifting the default export to work as normal
opts.plugins.unshift("add-module-exports"); opts.plugins.unshift("add-module-exports");
}, },
@ -68,7 +68,7 @@ module.exports = {
}, },
}, },
'umd': { 'umd': {
optionsOverride: (opts) => { optionsOverride: (opts) => {
// umd supports properly shifting the default export to work as normal // umd supports properly shifting the default export to work as normal
opts.plugins.unshift("add-module-exports"); opts.plugins.unshift("add-module-exports");
}, },