Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the
lint command. There were a couple of small manual changes to meet the
property order patterns established as part of the vue:recommended
guidelines.
There are rules that were set from errors to warnings and new stories
are being opened to address those issues.
Testing:
- Successfully ran npm run serve
- Successfully ran npm run lint
- Verified functionality works as expected, e.g. success and failure use cases
- Resolved any JavaScript errors thrown to the console
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
diff --git a/src/views/Control/SerialOverLan/SerialOverLanConsole.vue b/src/views/Control/SerialOverLan/SerialOverLanConsole.vue
index d5e9b21..b734bb1 100644
--- a/src/views/Control/SerialOverLan/SerialOverLanConsole.vue
+++ b/src/views/Control/SerialOverLan/SerialOverLanConsole.vue
@@ -42,13 +42,13 @@
name: 'SerialOverLanConsole',
components: {
IconLaunch,
- StatusIcon
+ StatusIcon,
},
props: {
isFullWindow: {
type: Boolean,
- default: true
- }
+ default: true,
+ },
},
computed: {
hostStatus() {
@@ -61,7 +61,7 @@
return this.hostStatus === 'on'
? this.$t('pageSerialOverLan.connected')
: this.$t('pageSerialOverLan.disconnected');
- }
+ },
},
created() {
this.$store.dispatch('global/getHostStatus');
@@ -74,7 +74,7 @@
const token = this.$store.getters['authentication/token'];
const ws = new WebSocket(`wss://${window.location.host}/console0`, [
- token
+ token,
]);
// Refer https://github.com/xtermjs/xterm.js/ for xterm implementation and addons.
@@ -82,7 +82,7 @@
const term = new Terminal({
fontSize: 15,
fontFamily:
- 'SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace'
+ 'SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace',
});
const attachAddon = new AttachAddon(ws);
@@ -94,7 +94,7 @@
const SOL_THEME = {
background: '#19273c',
cursor: 'rgba(83, 146, 255, .5)',
- scrollbar: 'rgba(83, 146, 255, .5)'
+ scrollbar: 'rgba(83, 146, 255, .5)',
};
term.setOption('theme', SOL_THEME);
@@ -102,10 +102,10 @@
fitAddon.fit();
try {
- ws.onopen = function() {
+ ws.onopen = function () {
console.log('websocket console0/ opened');
};
- ws.onclose = function(event) {
+ ws.onclose = function (event) {
console.log(
'websocket console0/ closed. code: ' +
event.code +
@@ -123,8 +123,8 @@
'_blank',
'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=550'
);
- }
- }
+ },
+ },
};
</script>