mirror of
https://github.com/Unleash/unleash.git
synced 2026-09-11 13:29:05 +00:00
27313d8a53
`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
16 lines
345 B
Bash
Executable File
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!"
|