Skip to content

Commit

Permalink
chore: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
hungify committed Oct 5, 2024
1 parent 20e40fa commit 2f99445
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/composables/create-context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inject, provide, type InjectionKey } from 'vue'
import { type InjectionKey, inject, provide } from 'vue'

Check warning on line 1 in src/composables/create-context.ts

View workflow job for this annotation

GitHub Actions / lint

Expected "inject" to come before "InjectionKey"

/**
* @param providerComponentName - The name(s) of the component(s) providing the context.
Expand Down
2 changes: 1 addition & 1 deletion src/composables/use-forward-expose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// reference: https://github.com/vuejs/rfcs/issues/258#issuecomment-1068697672
import { unrefElement } from '@vueuse/core'
import {
type ComponentPublicInstance,
computed,

Check warning on line 6 in src/composables/use-forward-expose.ts

View workflow job for this annotation

GitHub Actions / lint

Expected "computed" to come before "ComponentPublicInstance"
getCurrentInstance,
ref,
type ComponentPublicInstance,
} from 'vue'

export function useForwardExpose() {
Expand Down
2 changes: 1 addition & 1 deletion src/composables/use-forward-props-emits.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computed, type MaybeRefOrGetter } from 'vue'
import { type MaybeRefOrGetter, computed } from 'vue'

Check warning on line 1 in src/composables/use-forward-props-emits.ts

View workflow job for this annotation

GitHub Actions / lint

Expected "computed" to come before "MaybeRefOrGetter"
import { useEmitAsProps } from './use-emit-as-props'
import { useForwardProps } from './use-forward-props'

Expand Down
2 changes: 1 addition & 1 deletion src/composables/use-forward-props.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
type MaybeRefOrGetter,
camelize,
computed,
getCurrentInstance,
toRef,
type MaybeRefOrGetter,
} from 'vue'

interface PropOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/composables/use-forward-ref.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// reference: https://github.com/vuejs/rfcs/issues/258#issuecomment-1068697672
import { getCurrentInstance, type ComponentPublicInstance } from 'vue'
import { type ComponentPublicInstance, getCurrentInstance } from 'vue'

export function useForwardRef() {
const instance = getCurrentInstance()!
Expand Down
25 changes: 23 additions & 2 deletions src/plugins/assets/iconify-bundle.js

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

1 change: 0 additions & 1 deletion src/shims-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ interface ImportMetaEnv {
readonly VITE_BASE_API: string
}


declare module 'vue-router' {
export interface BaseRouteMeta {
title?: string
Expand Down
1 change: 1 addition & 0 deletions src/utils/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function omit<T extends object, K extends keyof T>(
obj: T,
...keys: K[]
): Omit<T, K> {
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
keys.forEach((key) => delete obj[key])
return obj
}
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"module": "ESNext",
"moduleResolution": "bundler",
"paths": {
"#/*": ["src/*"]
"#/*": ["src/*"],
},
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
Expand All @@ -24,12 +24,12 @@
"isolatedModules": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"plugins": [{ "name": "@vue/typescript-plugin" }]
"plugins": [{ "name": "@vue/typescript-plugin" }],
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.vue",
"typed-router.d.ts"
]
"typed-router.d.ts",
],
}

0 comments on commit 2f99445

Please sign in to comment.