Enforce keyword spacing

This commit is contained in:
Pierre Ossman 2018-09-06 17:08:19 +02:00
parent 942a312779
commit 35068204f4
3 changed files with 4 additions and 3 deletions

View File

@ -35,5 +35,6 @@
"func-names": ["error"], "func-names": ["error"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }], "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"key-spacing": ["error"], "key-spacing": ["error"],
"keyword-spacing": ["error"],
} }
} }

View File

@ -1007,7 +1007,7 @@ const UI = {
url = UI.getSetting('encrypt') ? 'wss' : 'ws'; url = UI.getSetting('encrypt') ? 'wss' : 'ws';
url += '://' + host; url += '://' + host;
if(port) { if (port) {
url += ':' + port; url += ':' + port;
} }
url += '/' + path; url += '/' + path;
@ -1497,7 +1497,7 @@ const UI = {
}, },
toggleExtraKeys() { toggleExtraKeys() {
if(document.getElementById('noVNC_modifiers') if (document.getElementById('noVNC_modifiers')
.classList.contains("noVNC_open")) { .classList.contains("noVNC_open")) {
UI.closeExtraKeys(); UI.closeExtraKeys();
} else { } else {

View File

@ -182,7 +182,7 @@ function make_lib_files(import_format, source_maps, with_app_dir, only_legacy) {
const out_path = path.join(out_path_base, path.relative(in_path_base, filename)); const out_path = path.join(out_path_base, path.relative(in_path_base, filename));
const legacy_path = path.join(legacy_path_base, path.relative(in_path_base, filename)); const legacy_path = path.join(legacy_path_base, path.relative(in_path_base, filename));
if(path.extname(filename) !== '.js') { if (path.extname(filename) !== '.js') {
if (!js_only) { if (!js_only) {
console.log(`Writing ${out_path}`); console.log(`Writing ${out_path}`);
return copy(filename, out_path); return copy(filename, out_path);