Skip to content

Commit 3f779c4

Browse files
committed
chore: 工程开发依赖升级
1 parent 1463e28 commit 3f779c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+18499
-15599
lines changed

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ root = true
55
[*]
66
charset = utf-8
77
end_of_line = lf
8-
indent_size = 4
8+
indent_size = 2
99
indent_style = space
1010
max_line_length = 120
1111
insert_final_newline = true
1212
trim_trailing_whitespace = true
13+
14+

.eslintignore

Lines changed: 0 additions & 40 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: needs.release.outputs.release_created
2828
runs-on: ubuntu-latest
2929
permissions:
30-
id-token: write
30+
id-token: write
3131
steps:
3232
- uses: actions/checkout@v4
3333
- uses: ./.github/actions/setup-nvm

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx commitlint --edit "$1"

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
echo "node version = $(node -v)"
52
echo "npm version = $(npm -v)"
63
npx lint-staged --allow-empty

.lintstagedrc.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 0 additions & 10 deletions
This file was deleted.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.25.0"
2+
".": "0.25.0"
33
}

README.md

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ const { defineConfig } = require('openapi-axios');
3838
* @ref https://github.com/FrontEndDev-org/openapi-axios
3939
*/
4040
module.exports = defineConfig({
41-
modules: {
42-
'petStore3': 'https://petstore31.swagger.io/api/v31/openapi.json'
43-
},
41+
modules: {
42+
petStore3: 'https://petstore31.swagger.io/api/v31/openapi.json'
43+
},
4444
});
4545
```
4646

@@ -67,42 +67,42 @@ Swagger at [http://swagger.io](http://swagger.io).
6767
* @see {@link http://swagger.io Find out more about Swagger}
6868
*/
6969

70-
import axios from "axios";
71-
import type {AxiosRequestConfig, AxiosPromise} from "axios";
70+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
71+
import axios from 'axios';
7272

7373
// ... 省略 ...
7474

7575
/**
7676
* @description Pet
7777
*/
78-
export type Pet = {
79-
/**
80-
* @format int64
81-
* @example 10
82-
*/
83-
id?: number;
84-
/**
85-
* @description Pet Category
86-
*/
87-
category?: Category;
88-
/**
89-
* @example doggie
90-
*/
91-
name: string;
92-
photoUrls: string;
93-
tags?: Tag;
94-
/**
95-
* @description pet status in the store
96-
*/
97-
status?: 'available' | 'pending' | 'sold';
98-
/**
99-
* @format int32
100-
* @example 7
101-
*/
102-
availableInstances?: number;
103-
petDetailsId?: unknown;
104-
petDetails?: unknown;
105-
};
78+
export interface Pet {
79+
/**
80+
* @format int64
81+
* @example 10
82+
*/
83+
id?: number;
84+
/**
85+
* @description Pet Category
86+
*/
87+
category?: Category;
88+
/**
89+
* @example doggie
90+
*/
91+
name: string;
92+
photoUrls: string;
93+
tags?: Tag;
94+
/**
95+
* @description pet status in the store
96+
*/
97+
status?: 'available' | 'pending' | 'sold';
98+
/**
99+
* @format int32
100+
* @example 7
101+
*/
102+
availableInstances?: number;
103+
petDetailsId?: unknown;
104+
petDetails?: unknown;
105+
}
106106

107107
// ... 省略 ...
108108

@@ -115,12 +115,12 @@ export type Pet = {
115115
* @returns Successful operation
116116
*/
117117
export async function updatePet(data: Pet, config?: AxiosRequestConfig): AxiosPromise<Pet> {
118-
return axios({
119-
method: 'put',
120-
url: `/pet`,
121-
data: data,
122-
...config,
123-
});
118+
return axios({
119+
method: 'put',
120+
url: `/pet`,
121+
data,
122+
...config,
123+
});
124124
}
125125

126126
// ... 省略 ...
@@ -141,5 +141,3 @@ const { data: pet } = await updatePet({
141141
// 类型安全
142142
console.log(pet);
143143
```
144-
145-

0 commit comments

Comments
 (0)