···11+---
22+"@hey-api/openapi-ts": minor
33+---
44+55+change: config option `lint: true` has changed to `lint: 'eslint'`
+5
.changeset/long-peaches-check.md
···11+---
22+"@hey-api/openapi-ts": minor
33+---
44+55+feat: add support for biomejs as a formatter
+5
.changeset/thirty-olives-drive.md
···11+---
22+"@hey-api/openapi-ts": minor
33+---
44+55+feat: add support for biomejs as a linter
+5
.changeset/twelve-poets-ring.md
···11+---
22+"@hey-api/openapi-ts": minor
33+---
44+55+change: config option `format: true` has changed to `format: 'prettier'`
+45-5
docs/openapi-ts/configuration.md
···103103104104## Formatting
105105106106-By default, `openapi-ts` will automatically format your client according to your project configuration. To disable automatic formatting, set `format` to false
106106+By default, `openapi-ts` will automatically format your client according to your project configuration. To disable automatic formatting, set `format` to false.
107107+108108+::: code-group
109109+110110+```js{2} [prettier]
111111+export default {
112112+ format: 'prettier',
113113+ input: 'path/to/openapi.json',
114114+ output: 'src/client',
115115+}
116116+```
117117+118118+```js{2} [biome]
119119+export default {
120120+ format: 'biome',
121121+ input: 'path/to/openapi.json',
122122+ output: 'src/client',
123123+}
124124+```
107125108108-```js{2}
126126+```js{2} [disabled]
109127export default {
110128 format: false,
111129 input: 'path/to/openapi.json',
···113131}
114132```
115133134134+:::
135135+116136You can also prevent your client from being processed by formatters by adding your output path to the tool's ignore file (e.g. `.prettierignore`).
117137118138## Linting
119139120120-For performance reasons, `openapi-ts` does not automatically lint your client. To enable this feature, set `lint` to true
140140+For performance reasons, `openapi-ts` does not automatically lint your client. To enable this feature, set `lint` to a valid linter.
121141122122-```js{3}
142142+::: code-group
143143+144144+```js{3} [disabled]
145145+export default {
146146+ input: 'path/to/openapi.json',
147147+ lint: false,
148148+ output: 'src/client',
149149+}
150150+```
151151+152152+```js{3} [eslint]
153153+export default {
154154+ input: 'path/to/openapi.json',
155155+ lint: 'eslint',
156156+ output: 'src/client',
157157+}
158158+```
159159+160160+```js{3} [biome]
123161export default {
124162 input: 'path/to/openapi.json',
125125- lint: true,
163163+ lint: 'biome',
126164 output: 'src/client',
127165}
128166```
167167+168168+:::
129169130170You can also prevent your client from being processed by linters by adding your output path to the tool's ignore file (e.g. `.eslintignore`).
131171
+24
docs/openapi-ts/migrating.md
···50505151## v0.42.0
52525353+### Changed `format`
5454+5555+This config option has changed. You now need to specify a value (`biome` or `prettier`) to format the output (default: `prettier`).
5656+5757+```js{2}
5858+export default {
5959+ format: 'prettier',
6060+ input: 'path/to/openapi.json',
6161+ output: 'src/client',
6262+}
6363+```
6464+6565+### Changed `lint`
6666+6767+This config option has changed. You now need to specify a value (`biome` or `eslint`) to lint the output (default: `false`).
6868+6969+```js{3}
7070+export default {
7171+ input: 'path/to/openapi.json',
7272+ lint: 'eslint',
7373+ output: 'src/client',
7474+}
7575+```
7676+5377### Moved `operationId`
54785579This config option has been moved. You can now configure it using the `services.operationId` option.