Skip to content

Commit

Permalink
Update ESLint rules and fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Mar 6, 2024
1 parent 73fe16b commit 9bc9df6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"chai": "^4.4.1",
"chai-http": "^4.4.0",
"eslint": "^8.57.0",
"eslint-config-gbv": "1.0.5",
"eslint-config-gbv": "~1.1.0",
"eslint-plugin-vue": "^9.22.0",
"mocha": "^10.3.0",
"mocha-eslint": "^7.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/components/ItemView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
v-if="item.notation?.length"
title="Notations">
<ul class="jskos-vue-itemDetails-list">
<li v-for="n in item.notation">
<li
v-for="(n, i) in item.notation"
:key="i">
{{ n }}
</li>
</ul>
Expand Down
5 changes: 4 additions & 1 deletion src/components/MappingList.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<h4>Mappings</h4>
<table>
<tr v-for="mapping in mappings">
<tr
v-for="(mapping, i) in mappings"
:key="i">
<td>{{ mappingSymbol(mapping) }}</td>
<td>
<item-list
Expand All @@ -16,6 +18,7 @@
<script setup>
import jskos from "jskos-tools"
// eslint-disable-next-line no-unused-vars
const props = defineProps({ mappings: Array})
const openPage = e => window.open(e.item.uri,"_blank")
Expand Down
6 changes: 4 additions & 2 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ describe("JSKOS Proxy Server", () => {
.then((res) => {
assert.equal(res.status,200)
}),
)})
)
})

describe("GET /?format=debug", () => {
it("debug ejs options", () =>
Expand All @@ -29,7 +30,8 @@ describe("JSKOS Proxy Server", () => {
.then(res => {
assert.equal(res.body.namespace, "http://example.org/")
}),
)})
)
})

describe("Format selection", () => {
it("complains for unknown formats",
Expand Down

0 comments on commit 9bc9df6

Please sign in to comment.