Update lint rules

pull/496/head
Cagatay Civici 2020-09-17 15:11:27 +03:00
parent 83e789e1d5
commit 040c599e51
2 changed files with 18 additions and 19 deletions

View File

@ -1,18 +1,17 @@
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-trailing-spaces': 'error'
},
parserOptions: {
parser: 'babel-eslint'
}
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}

View File

@ -2,9 +2,9 @@
<nav class="p-breadcrumb p-component" aria-label="Breadcrumb">
<ul>
<BreadcrumbItem v-if="home" :item="home" class="p-breadcrumb-home" />
<template v-for="(item, i) of model">
<li class="p-breadcrumb-chevron pi pi-chevron-right" :key="'chevron' + i"></li>
<BreadcrumbItem :key="item.label + i" :item="item" />
<template v-for="item of model" :key="item.label" >
<li class="p-breadcrumb-chevron pi pi-chevron-right"></li>
<BreadcrumbItem :item="item" />
</template>
</ul>
</nav>