Skip to content

Commit ae75e79

Browse files
committed
fix: fix linting errors
1 parent 3bc08d1 commit ae75e79

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Thanks for being interested in contributing to this project!
44

5-
## Development
5+
## Development
66

77
### Setup
88

netlify.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[build.environment]
2-
NPM_FLAGS = "--version"
3-
NODE_VERSION = "16"
4-
51
[build]
6-
publish = "dist"
7-
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
2+
publish = "dist"
3+
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
4+
5+
[build.environment]
6+
NPM_FLAGS = "--version"
7+
NODE_VERSION = "16"
88

99
[[redirects]]
10-
from = "/*"
11-
to = "/index.html"
12-
status = 200
10+
from = "/*"
11+
to = "/index.html"
12+
status = 200

src/components/TheViewLabel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const isClassified = (uuid: string, category: Category): boolean => {
4646
const flag = labelsByUuid.value[uuid]
4747
.findIndex((d) => (
4848
d.type === AnnotationType.Classification
49-
&& d.value === category
49+
&& d.value === category
5050
)) !== -1
5151
return flag
5252
}

src/stores/annotation.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ export const useStore = defineStore('annotation', {
6666
/** Whether to replace old annotation. */
6767
const index = this.annotations.findIndex((d) => (
6868
d.type === type
69-
&& d.subject === subject
70-
&& (
71-
((value === Category.Vis || value === Category.NotVis)
72-
&& (d.value === Category.Vis || d.value === Category.NotVis))
73-
|| ((value === Category.Map || value === Category.NotMap)
74-
&& (d.value === Category.Map || d.value === Category.NotMap))
75-
|| ((value === Category.Text || value === Category.NotText)
76-
&& (d.value === Category.Text || d.value === Category.NotText))
77-
|| ((value === Category.Table || value === Category.NotTable)
78-
&& (d.value === Category.Table || d.value === Category.NotTable))
79-
)
69+
&& d.subject === subject
70+
&& (
71+
((value === Category.Vis || value === Category.NotVis)
72+
&& (d.value === Category.Vis || d.value === Category.NotVis))
73+
|| ((value === Category.Map || value === Category.NotMap)
74+
&& (d.value === Category.Map || d.value === Category.NotMap))
75+
|| ((value === Category.Text || value === Category.NotText)
76+
&& (d.value === Category.Text || d.value === Category.NotText))
77+
|| ((value === Category.Table || value === Category.NotTable)
78+
&& (d.value === Category.Table || d.value === Category.NotTable))
79+
)
8080
))
8181
const replace = index !== -1
8282
const annotation: Annotation = {
@@ -97,8 +97,8 @@ export const useStore = defineStore('annotation', {
9797
/** Whether to replace old annotation. */
9898
const index = this.annotations.findIndex((d) => (
9999
d.type === type
100-
&& d.subject === subject
101-
&& d.value === value
100+
&& d.subject === subject
101+
&& d.value === value
102102
))
103103
if (index !== -1) {
104104
this.annotations.splice(index, 1)

test/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from 'vitest'
22

3-
describe('Hi', () => {
3+
describe('hi', () => {
44
it('should works', () => {
55
expect(1 + 1).toEqual(2)
66
})

tsconfig.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": ".",
4-
"module": "ESNext",
53
"target": "es2020",
6-
"lib": ["DOM", "ESNext"],
7-
"strict": true,
84
"jsx": "preserve",
9-
"esModuleInterop": true,
10-
"skipLibCheck": true,
5+
"lib": ["DOM", "ESNext"],
6+
"baseUrl": ".",
7+
"module": "ESNext",
118
"moduleResolution": "bundler",
9+
"paths": {
10+
"~/*": ["src/*"]
11+
},
1212
"resolveJsonModule": true,
13-
"noUnusedLocals": true,
14-
"strictNullChecks": true,
15-
"allowJs": true,
16-
"forceConsistentCasingInFileNames": true,
1713
"types": [
1814
"vite/client",
1915
"vite-plugin-pages/client",
2016
"unplugin-vue-macros/macros-global"
2117
],
22-
"paths": {
23-
"~/*": ["src/*"]
24-
}
18+
"allowJs": true,
19+
"strict": true,
20+
"strictNullChecks": true,
21+
"noUnusedLocals": true,
22+
"esModuleInterop": true,
23+
"forceConsistentCasingInFileNames": true,
24+
"skipLibCheck": true
2525
},
2626
"exclude": ["dist", "node_modules"]
2727
}

0 commit comments

Comments
 (0)