Files
unleash/frontend/scripts/clean_orval_generated.sh
Krzysztof (Kris) Kula 27313d8a53 dev: unify lint and lint:fix
`biome check` Runs formatter, linter and import sorting to the requested
files.
https://biomejs.dev/reference/cli/#biome-check

`oss/frontend` wasn't using it. 

Smallest change to simplify things is to align on how enterprise and oss
backend work:

* `pnpm lint` - checks
*  `pnpm lint:fix` - formatting, fixing small lint issues, sorts imports
2026-07-07 11:02:05 +02:00

16 lines
345 B
Bash
Executable File

#!/bin/bash
echo "Deleting generated apis..."
rm -rf src/openapi/apis
# Remove all but last line from index.ts
echo "Cleaning index.ts..."
echo "export * from './models/index';" > src/openapi/index.ts
echo '' >> src/openapi/index.ts
echo "Formatting..."
pnpm lint:fix
./node_modules/.bin/biome lint --write --unsafe src/openapi
echo "Done!"