Files
kuberay/scripts/dashboard-lint.sh
c85646fae9 [Feature] Add eslint and Prettier to ray dashboard (#3975)
* style: add / update next js eslint to latest

Signed-off-by: Cheyu Wu <[email protected]>

* style: add prettier for tsx and js

Signed-off-by: Cheyu Wu <[email protected]>

* chore: extend the name in  .pre-commit-config.yaml

Co-authored-by: Nary Yeh <[email protected]>
Signed-off-by: Cheyu Wu <[email protected]>

* chore: mv yarn lock check to CI and keep only lint in pre-commit

Signed-off-by: Cheyu Wu <[email protected]>

* fix: pipeline err

Signed-off-by: Cheyu Wu <[email protected]>

---------

Signed-off-by: Cheyu Wu <[email protected]>
Signed-off-by: Cheyu Wu <[email protected]>
Co-authored-by: Nary Yeh <[email protected]>
2025-08-22 09:18:37 -07:00

12 lines
189 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Navigate to the dashboard directory where package.json exists
dirs_to_lint="dashboard"
for dir in $dirs_to_lint; do
pushd "$dir"
yarn lint
popd
done