Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sharknoon committed Jun 21, 2024
1 parent b20c369 commit 547fd12
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ logs
!.env.example

# Public files
public/place-atlas
public
2 changes: 1 addition & 1 deletion components/informations/ProjectProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
:class="p.classes"
class="d-inline-block ratio ratio-1x1"
style="width: 1rem; height: 1rem"
></div>
/>
{{ $t(p.text) }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/templates/LegendComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="d-flex justify-content-center gap-4 mb-3 mt-1">
<div v-for="(item, i) in items" :key="i" class="d-flex gap-2">
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-html="item.icon"></div>
<div v-html="item.icon" />
{{ $t(item.name) }}
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import withNuxt from "./.nuxt/eslint.config.mjs";

export default withNuxt(
{
ignores: ["public/"],
},
{
rules: {
// Allows prettier to handle self closing tags
"vue/html-self-closing": "off",
},
},
);
7 changes: 0 additions & 7 deletions eslint.config.mjs

This file was deleted.

4 changes: 2 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
:class="{ 'router-link-active': $route.path.startsWith(item.to) }"
>
<!-- eslint-disable vue/no-v-html -->
<span class="me-2" v-html="item.icon"></span>
<span class="me-2" v-html="item.icon" />
<span class="pt-1">{{ item.name }}</span>
</NuxtLink>
</nav>
Expand Down Expand Up @@ -76,7 +76,7 @@
data-bs-target="#navbarSupportedContent"
>
<!-- eslint-disable vue/no-v-html -->
<span class="me-2" v-html="item.icon"></span>
<span class="me-2" v-html="item.icon" />
<span class="pt-1">{{ item.name }}</span>
</div>
</NuxtLink>
Expand Down
Loading

0 comments on commit 547fd12

Please sign in to comment.