From a619037fa75293cbd1115b32ec3cb6b2e5593484 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 14 Apr 2022 14:00:17 +0200 Subject: [PATCH] Add prettier config --- client/.eslintrc.cjs | 5 ++++- client/.prettierrc | 6 ++++++ client/src/router/index.ts | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 client/.prettierrc diff --git a/client/.eslintrc.cjs b/client/.eslintrc.cjs index 2ab20f7b..f29db5b6 100644 --- a/client/.eslintrc.cjs +++ b/client/.eslintrc.cjs @@ -21,5 +21,8 @@ module.exports = { "plugin:cypress/recommended" ] } - ] + ], + "rules": { + "quotes": ["error", "single"] + } } diff --git a/client/.prettierrc b/client/.prettierrc new file mode 100644 index 00000000..f63033f0 --- /dev/null +++ b/client/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": false, + "singleQuote": true, + "tabWidth": 2, + "printWidth": 120 +} diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 1fad90d4..ac9492a7 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -1,5 +1,5 @@ import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' +import HomeView from '../views/HomeView.vue'; import learningPathRoutes from './learningpath.routes' const router = createRouter({ @@ -14,7 +14,7 @@ const router = createRouter({ } }, { - path: "/login", + path: '/login', component: HomeView, beforeEnter(to, from, next) { window.location.href = "/sso/login/";