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 = { module.exports = {
root: true, root: true,
env: { env: {
node: true node: true
}, },
'extends': [ 'extends': [
'plugin:vue/essential', 'plugin:vue/vue3-essential',
'eslint:recommended' 'eslint:recommended'
], ],
rules: { parserOptions: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', parser: 'babel-eslint'
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', },
'no-trailing-spaces': 'error' rules: {
}, 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
parserOptions: { 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
parser: 'babel-eslint'
}
} }
}

View File

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