Skip to content

Commit a3080c1

Browse files
committed
chore: lint client-nuxt dist folder
1 parent d978726 commit a3080c1

File tree

3 files changed

+71
-376
lines changed

3 files changed

+71
-376
lines changed

packages/client-nuxt/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
"src"
5151
],
5252
"scripts": {
53-
"build": "tsup && rollup -c && pnpm check-exports",
53+
"build": "tsup && rollup -c && pnpm lint && pnpm check-exports",
5454
"check-exports": "attw --ignore-rules cjs-resolves-to-esm --pack .",
5555
"dev": "tsup --watch",
56+
"lint": "eslint ./dist/index.d.ts --no-ignore --fix",
5657
"prepublishOnly": "pnpm build",
5758
"test:coverage": "vitest run --coverage",
5859
"test:update": "vitest watch --update",
@@ -67,6 +68,7 @@
6768
"devDependencies": {
6869
"@hey-api/client-core": "workspace:*",
6970
"@nuxt/test-utils": "3.14.0",
71+
"eslint": "9.17.0",
7072
"vite": "6.0.9"
7173
}
7274
}

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/client/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { UseFetchOptions, AsyncDataOptions, useAsyncData, useFetch, useLazyAsyncData, useLazyFetch } from 'nuxt/app';
2-
import { Ref } from 'vue';
1+
import type { AsyncDataOptions, useAsyncData, useFetch, UseFetchOptions, useLazyAsyncData, useLazyFetch } from 'nuxt/app';
2+
import type { Ref } from 'vue';
33

44
type AuthToken = string | undefined;
55
interface Auth {
@@ -190,4 +190,4 @@ declare const createClient: (config?: Config) => Client;
190190

191191
declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
192192

193-
export { type Auth, type Client, type ClientOptions, type Composable, type Config, type CreateClientConfig, type Options, type OptionsLegacyParser, type QuerySerializerOptions, type RequestOptions, type RequestResult, type TDataShape, createClient, createConfig, formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer };
193+
export { type Auth, type Client, type ClientOptions, type Composable, type Config, createClient, type CreateClientConfig, createConfig, formDataBodySerializer, jsonBodySerializer, type Options, type OptionsLegacyParser, type QuerySerializerOptions, type RequestOptions, type RequestResult, type TDataShape, urlSearchParamsBodySerializer };

0 commit comments

Comments
 (0)