Skip to content

Commit ed515e2

Browse files
renovate[bot]BacLuc
authored andcommitted
chore(deps): update dependency @nuxt/eslint-config to v1
@nuxt/eslint-config ships it's own eslint-plugin-vue. We cannot instantiate the plugin twice. But @nuxt/eslint-config only uses vue rules, not the vue-recommended, which would be a different set than for the other modules. Thus, we activate all the rules of vue-recommended manually.
1 parent e8ba467 commit ed515e2

File tree

5 files changed

+150
-718
lines changed

5 files changed

+150
-718
lines changed

print/components/config/Cover.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div class="tw-break-after-page tw-text-center">
3-
<p class="tw-font-medium tw-mt-20 tw-text-3xl">{{ camp.organizer }}</p>
3+
<p class="tw-font-medium tw-mt-20 tw-text-3xl">
4+
{{ camp.organizer }}
5+
</p>
46

57
<h1 :id="`content_${index}_cover`" class="tw-my-16 tw-text-6xl tw-font-semibold">
68
{{ camp.title }}

print/components/scheduleEntry/contentNode/Checklist.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
<generic-error-message v-if="error" :error="error" />
44

55
<div v-for="entry in checklistsWithItems" :key="entry.checklist.id" class="tw-mb-2">
6-
<div class="tw-font-bold">{{ entry.checklist.name }}</div>
6+
<div class="tw-font-bold">
7+
{{ entry.checklist.name }}
8+
</div>
79
<table>
810
<tr v-for="item in entry.items" :key="item.id" class="tw-align-baseline">
911
<th class="tw-tabular-nums tw-pr-1 tw-font-normal tw-text-start">
1012
{{ item.number }}
1113
</th>
12-
<td class="tw-pb-1">{{ item.text }}</td>
14+
<td class="tw-pb-1">
15+
{{ item.text }}
16+
</td>
1317
</tr>
1418
</table>
1519
</div>

print/eslint.config.mjs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,27 @@ const __filename = fileURLToPath(import.meta.url)
1313
const __dirname = path.dirname(__filename)
1414
const gitignorePath = path.resolve(__dirname, '.gitignore')
1515

16+
const vueRecommendedFlatConfigs = vueEslint.configs['flat/recommended']
17+
const allVueRecommendedRules = {}
18+
for (const config of vueRecommendedFlatConfigs) {
19+
if (config.rules) {
20+
Object.assign(allVueRecommendedRules, config.rules)
21+
}
22+
}
23+
// we now have a mix between eslint-plugin-vue v9 and 10
24+
// (@nuxt/eslint pulls in eslint-plugin-vue v10, we have v9)
25+
// v10 does not support this rule anymore.
26+
delete allVueRecommendedRules['vue/component-tags-order']
27+
1628
export default createConfigForNuxt().append([
1729
{
1830
files: ['**/*.ts'],
1931
},
20-
...vueEslint.configs['flat/recommended'],
32+
{
33+
rules: {
34+
...allVueRecommendedRules,
35+
},
36+
},
2137
...vueScopedCssEslint.configs['flat/recommended'],
2238
js.configs.recommended,
2339
prettierRecommended,

0 commit comments

Comments
 (0)