Skip to content

Commit c3b3360

Browse files
committed
chore: Run eslint
1 parent d63207e commit c3b3360

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Find and replace all on all files (CMD+SHIFT+F):
1414
[![License][license-src]][license-href]
1515
[![Nuxt][nuxt-src]][nuxt-href]
1616

17-
> [!IMPORTANT]
17+
> [!IMPORTANT]
1818
> This repository is fork of original [nuxt-open-fetch](https://github.com/enkot/nuxt-open-fetch) by [enkot](https://github.com/enkot).\
1919
> It does not have many additional features, but it has updated dependencies and some bug fixes.
2020

docs/app/error.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { ParsedContent } from '@nuxt/content'
32
import type { NuxtError } from '#app'
3+
import type { ParsedContent } from '@nuxt/content'
44
55
defineProps({
66
error: {

playground/server/api/hello.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineEventHandler } from 'h3'
21
import { useNitroApp } from '#imports'
2+
import { defineEventHandler } from 'h3'
33

44
export default defineEventHandler(async () => {
55
const { $pets } = useNitroApp()

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { existsSync } from 'node:fs'
21
import type { Readable } from 'node:stream'
32
import type { FetchOptions } from 'ofetch'
43
import type { OpenAPI3, OpenAPITSOptions } from 'openapi-typescript'
4+
import { existsSync } from 'node:fs'
55
import {
66
addImportsSources,
77
addPlugin,
@@ -13,8 +13,8 @@ import {
1313
defineNuxtModule,
1414
} from '@nuxt/kit'
1515
import openapiTS, { astToString } from 'openapi-typescript'
16-
import { camelCase, kebabCase, pascalCase } from 'scule'
1716
import { join } from 'pathe'
17+
import { camelCase, kebabCase, pascalCase } from 'scule'
1818

1919
type OpenAPI3Schema = string | URL | OpenAPI3 | Readable
2020

src/runtime/useFetch.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { Ref } from 'vue'
2-
import type { $Fetch } from 'ofetch'
1+
import type { OpenFetchClientName } from '#build/open-fetch'
32
import type { AsyncData, UseFetchOptions } from 'nuxt/app'
4-
import { toValue } from 'vue'
5-
import { useFetch, useNuxtApp } from 'nuxt/app'
3+
import type { $Fetch } from 'ofetch'
4+
import type { Ref } from 'vue'
65
import type { FetchResponseData, FetchResponseError, FilterMethods, ParamsOption, RequestBodyOption } from './fetch'
7-
import type { OpenFetchClientName } from '#build/open-fetch'
6+
import { useFetch, useNuxtApp } from 'nuxt/app'
7+
import { toValue } from 'vue'
88

99
type PickFrom<T, K extends Array<string>> = T extends Array<any> ? T : T extends Record<string, any> ? keyof T extends K[number] ? T : K[number] extends never ? T : Pick<T, K[number]> : T
1010
type KeysOf<T> = Array<T extends T ? keyof T extends string ? keyof T : never : never>

test/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fileURLToPath } from 'node:url'
2-
import { describe, expect, it } from 'vitest'
32
import { $fetch, setup } from '@nuxt/test-utils'
3+
import { describe, expect, it } from 'vitest'
44

55
describe('ssr', async () => {
66
await setup({

test/types.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import type { paths } from '#build/types/open-fetch/schemas/pets'
12
import type { Ref } from 'vue'
23
import { describe, expectTypeOf, it } from 'vitest'
34
import { createOpenFetch } from '../src/runtime/fetch'
45
import { createUseOpenFetch } from '../src/runtime/useFetch'
5-
import type { paths } from '#build/types/open-fetch/schemas/pets'
66

77
interface ReturnData {
88
id?: number

0 commit comments

Comments
 (0)