Skip to content

Commit

Permalink
style: update eslint and vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Jul 12, 2023
1 parent 4546cab commit 7b13704
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 369 deletions.
2 changes: 1 addition & 1 deletion lib/components/SInputHMS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function getValue(value: string): string | null {
const input = Number(value)
return isNaN(input) ? null : String(input)
return Number.isNaN(input) ? null : String(input)
}
function emitTouch(type: ValueType): void {
Expand Down
2 changes: 1 addition & 1 deletion lib/composables/Markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function useLink({ container, callbacks }: UseLinkOptions): UseLink {
}

if (isCallback) {
const idx = parseInt(target.dataset.callbackId || '')
const idx = Number.parseInt(target.dataset.callbackId || '')
const callback = (callbacks ?? [])[idx]

if (!callback) {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"dayjs": "^1.11.7"
},
"devDependencies": {
"@globalbrain/eslint-config": "^1.5.0",
"@globalbrain/eslint-config": "^1.5.1",
"@histoire/plugin-vue": "^0.16.1",
"@iconify-icons/ph": "^1.2.4",
"@iconify/vue": "^4.1.1",
Expand All @@ -73,7 +73,7 @@
"@types/markdown-it": "^12.2.3",
"@types/node": "^20.1.1",
"@vitejs/plugin-vue": "^4.2.1",
"@vitest/coverage-c8": "^0.31.0",
"@vitest/coverage-c8": "^0.33.0",
"@vue/test-utils": "^2.3.2",
"@vuelidate/core": "^2.0.2",
"@vuelidate/validators": "^2.0.2",
Expand All @@ -82,10 +82,10 @@
"chalk": "^4.1.2",
"conventional-changelog-cli": "^2.2.2",
"enquirer": "^2.3.6",
"eslint": "^8.40.0",
"eslint": "^8.44.0",
"execa": "^5.1.1",
"fuse.js": "^6.6.2",
"happy-dom": "^9.10.9",
"happy-dom": "^10.1.1",
"histoire": "^0.16.1",
"lodash-es": "^4.17.21",
"markdown-it": "^13.0.1",
Expand All @@ -98,7 +98,7 @@
"v-calendar": "^3.0.3",
"vite": "^4.3.5",
"vitepress": "1.0.0-alpha.75",
"vitest": "^0.31.0",
"vitest": "^0.33.0",
"vue": "^3.2.47",
"vue-router": "^4.1.6",
"vue-tsc": "^1.7.1",
Expand Down
Loading

0 comments on commit 7b13704

Please sign in to comment.