From fd2f1a05a960c07f2d7bb191f058b7e3867bb718 Mon Sep 17 00:00:00 2001 From: Vladyslav Piskunov Date: Sun, 9 Jun 2019 09:34:21 +0300 Subject: [PATCH] Replace == with ===, to prevent ESLint warnings Prevent `eqeqeq` ESLint rule being triggered --- generator/templates/nvw/src/App.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generator/templates/nvw/src/App.vue b/generator/templates/nvw/src/App.vue index 620ee6d..b06aa08 100644 --- a/generator/templates/nvw/src/App.vue +++ b/generator/templates/nvw/src/App.vue @@ -58,10 +58,10 @@ }, methods: { goToHomePage() { - VUE_APP_MODE == 'web' ? this.$router.push('/') : this.$navigateTo(Home); + VUE_APP_MODE === 'web' ? this.$router.push('/') : this.$navigateTo(Home); }, goToAboutPage() { - VUE_APP_MODE == 'web' ? this.$router.push('about') : this.$navigateTo(About); + VUE_APP_MODE === 'web' ? this.$router.push('about') : this.$navigateTo(About); }, }, }; @@ -100,11 +100,11 @@ private navbarTitle: string = `App.vue`; private goToHomePage () { - VUE_APP_MODE == 'web' ? this.$router.push('/') : this.$navigateTo(Home); + VUE_APP_MODE === 'web' ? this.$router.push('/') : this.$navigateTo(Home); }; private goToAboutPage () { - VUE_APP_MODE == 'web' ? this.$router.push('about') : this.$navigateTo(About); + VUE_APP_MODE === 'web' ? this.$router.push('about') : this.$navigateTo(About); }; } @@ -203,4 +203,4 @@ -<%_ } _%> \ No newline at end of file +<%_ } _%>