Add prettier config

This commit is contained in:
Christian Cueni 2022-04-14 14:00:17 +02:00
parent bc8d1b0a21
commit a619037fa7
3 changed files with 12 additions and 3 deletions

View File

@ -21,5 +21,8 @@ module.exports = {
"plugin:cypress/recommended"
]
}
]
],
"rules": {
"quotes": ["error", "single"]
}
}

6
client/.prettierrc Normal file
View File

@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"printWidth": 120
}

View File

@ -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/";