mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 20:27:14 +00:00
ensure prettier and next are installed for pre-commit
This commit is contained in:
parent
38dbc6202d
commit
9afa32a2ab
1 changed files with 2 additions and 2 deletions
|
|
@ -148,14 +148,14 @@ repos:
|
||||||
files: ^.github/workflows/.*$
|
files: ^.github/workflows/.*$
|
||||||
- id: ui-prettier
|
- id: ui-prettier
|
||||||
name: Format UI code with Prettier
|
name: Format UI code with Prettier
|
||||||
entry: bash -c 'cd llama_stack/ui && npm run format'
|
entry: bash -c 'cd llama_stack/ui && npm ci && npm run format'
|
||||||
language: system
|
language: system
|
||||||
files: ^llama_stack/ui/.*\.(ts|tsx)$
|
files: ^llama_stack/ui/.*\.(ts|tsx)$
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
require_serial: true
|
require_serial: true
|
||||||
- id: ui-eslint
|
- id: ui-eslint
|
||||||
name: Lint UI code with ESLint
|
name: Lint UI code with ESLint
|
||||||
entry: bash -c 'cd llama_stack/ui && npm run lint -- --fix --quiet'
|
entry: bash -c 'cd llama_stack/ui && npm ci && npm run lint -- --fix --quiet'
|
||||||
language: system
|
language: system
|
||||||
files: ^llama_stack/ui/.*\.(ts|tsx)$
|
files: ^llama_stack/ui/.*\.(ts|tsx)$
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue