Fix linting in script blocks in vue files
- Removed the .eslintrc and added the pretteri rules to the eslintrc file
- Ran `npm run lint --fix`
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I4e36c1967ae9b4d839ef88f1d47ffa20ab4e4991
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue
index 244eeb3..5c2c333 100644
--- a/src/components/AppHeader/AppHeader.vue
+++ b/src/components/AppHeader/AppHeader.vue
@@ -36,38 +36,38 @@
</template>
<script>
-import IconAvatar from "@carbon/icons-vue/es/user--avatar/20";
-import IconRenew from "@carbon/icons-vue/es/renew/20";
-import StatusIcon from "../Global/StatusIcon";
+import IconAvatar from '@carbon/icons-vue/es/user--avatar/20';
+import IconRenew from '@carbon/icons-vue/es/renew/20';
+import StatusIcon from '../Global/StatusIcon';
export default {
- name: "AppHeader",
+ name: 'AppHeader',
components: { IconAvatar, IconRenew, StatusIcon },
created() {
this.getHostInfo();
},
computed: {
hostStatus() {
- return this.$store.getters["global/hostStatus"];
+ return this.$store.getters['global/hostStatus'];
},
hostStatusIcon() {
switch (this.hostStatus) {
- case "on":
- return "success";
- case "error":
- return "danger";
- case "off":
+ case 'on':
+ return 'success';
+ case 'error':
+ return 'danger';
+ case 'off':
default:
- return "secondary";
+ return 'secondary';
}
}
},
methods: {
getHostInfo() {
- this.$store.dispatch("global/getHostStatus");
+ this.$store.dispatch('global/getHostStatus');
},
logout() {
- this.$store.dispatch("authentication/logout").then(() => {
- this.$router.push("/login");
+ this.$store.dispatch('authentication/logout').then(() => {
+ this.$router.push('/login');
});
}
}