fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1283 from hougesen/feat/linters/oxlint

feat: add support for oxlint as linter

authored by

Lubos and committed by
GitHub
5fe365f4 93ed61b7

+22 -1
+5
.changeset/loud-peaches-pretend.md
··· 1 + --- 2 + '@hey-api/openapi-ts': patch 3 + --- 4 + 5 + feat: add support for oxlint as linter
+11
docs/openapi-ts/configuration.md
··· 161 161 }; 162 162 ``` 163 163 164 + ```js [oxlint] 165 + export default { 166 + client: '@hey-api/client-fetch', 167 + input: 'path/to/openapi.json', 168 + output: { 169 + lint: 'oxlint', // [!code ++] 170 + path: 'src/client', 171 + }, 172 + }; 173 + ``` 174 + 164 175 ::: 165 176 166 177 You can also prevent your output from being linted by adding your output path to the linter's ignore file.
+5
packages/openapi-ts/src/index.ts
··· 78 78 command: 'eslint', 79 79 name: 'ESLint', 80 80 }, 81 + oxlint: { 82 + args: (path) => ['--fix', path], 83 + command: 'oxlint', 84 + name: 'oxlint', 85 + }, 81 86 }; 82 87 83 88 const processOutput = ({ config }: { config: Config }) => {
+1 -1
packages/openapi-ts/src/types/config.ts
··· 119 119 * Process output folder with linter? 120 120 * @default false 121 121 */ 122 - lint?: 'biome' | 'eslint' | false; 122 + lint?: 'biome' | 'eslint' | 'oxlint' | false; 123 123 /** 124 124 * The relative location of the output folder 125 125 */