13 lines
320 B
Bash
Executable file
13 lines
320 B
Bash
Executable file
#!/bin/bash
|
|
# Lint Node/TypeScript code with ESLint and Prettier
|
|
|
|
set -e
|
|
|
|
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
|
cd "$REPO_ROOT/hindsight-control-plane"
|
|
|
|
echo " Linting Node/TS with ESLint and Prettier..."
|
|
npx eslint --fix "src/**/*.{ts,tsx}"
|
|
npx prettier --write "src/**/*.{ts,tsx}"
|
|
|
|
echo " Node lint complete"
|