···11+---
22+"@hey-api/docs": patch
33+---
44+55+docs: add format and lint migration for 0.44.0
+5
.changeset/grumpy-bikes-rhyme.md
···11+---
22+"@hey-api/openapi-ts": minor
33+---
44+55+feat: move format and lint config options to output object
+32-20
docs/openapi-ts/configuration.md
···103103104104## Formatting
105105106106-By default, `openapi-ts` will not automatically format your client. To enable this feature, set `format` to a valid formatter.
106106+By default, `openapi-ts` will not automatically format your client. To enable this feature, set `output.format` to a valid formatter.
107107108108::: code-group
109109110110-```js{2} [disabled]
110110+```js{4} [disabled]
111111export default {
112112- format: false,
113112 input: 'path/to/openapi.json',
114114- output: 'src/client',
113113+ output: {
114114+ format: false,
115115+ path: 'src/client',
116116+ },
115117}
116118```
117119118118-```js{2} [prettier]
120120+```js{4} [prettier]
119121export default {
120120- format: 'prettier',
121122 input: 'path/to/openapi.json',
122122- output: 'src/client',
123123+ output: {
124124+ format: 'prettier',
125125+ path: 'src/client',
126126+ },
123127}
124128```
125129126126-```js{2} [biome]
130130+```js{4} [biome]
127131export default {
128128- format: 'biome',
129132 input: 'path/to/openapi.json',
130130- output: 'src/client',
133133+ output: {
134134+ format: 'biome',
135135+ path: 'src/client',
136136+ },
131137}
132138```
133139···137143138144## Linting
139145140140-For performance reasons, `openapi-ts` does not automatically lint your client. To enable this feature, set `lint` to a valid linter.
146146+For performance reasons, `openapi-ts` does not automatically lint your client. To enable this feature, set `output.lint` to a valid linter.
141147142148::: code-group
143149144144-```js{3} [disabled]
150150+```js{4} [disabled]
145151export default {
146152 input: 'path/to/openapi.json',
147147- lint: false,
148148- output: 'src/client',
153153+ output: {
154154+ lint: false,
155155+ path: 'src/client',
156156+ },
149157}
150158```
151159152152-```js{3} [eslint]
160160+```js{4} [eslint]
153161export default {
154162 input: 'path/to/openapi.json',
155155- lint: 'eslint',
156156- output: 'src/client',
163163+ output: {
164164+ lint: 'eslint',
165165+ path: 'src/client',
166166+ },
157167}
158168```
159169160160-```js{3} [biome]
170170+```js{4} [biome]
161171export default {
162172 input: 'path/to/openapi.json',
163163- lint: 'biome',
164164- output: 'src/client',
173173+ output: {
174174+ lint: 'biome',
175175+ path: 'src/client',
176176+ },
165177}
166178```
167179
+30
docs/openapi-ts/migrating.md
···50505151This config option is deprecated and will be removed in favor of [clients](./clients).
52525353+## v0.44.0
5454+5555+### Moved `format`
5656+5757+This config option has been moved. You can now configure formatter using the `output.format` option.
5858+5959+```js{4}
6060+export default {
6161+ input: 'path/to/openapi.json',
6262+ output: {
6363+ format: 'prettier',
6464+ path: 'src/client',
6565+ },
6666+}
6767+```
6868+6969+### Moved `lint`
7070+7171+This config option has been moved. You can now configure linter using the `output.lint` option.
7272+7373+```js{4}
7474+export default {
7575+ input: 'path/to/openapi.json',
7676+ output: {
7777+ lint: 'eslint',
7878+ path: 'src/client',
7979+ },
8080+}
8181+```
8282+5383## v0.43.0
54845585### Removed `enums.gen.ts`