Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerhub_token: ${{ secrets.WBS_PUBLISH_TOKEN }}

- run: ./nx lint
- run: ./nx lint --prettier

build:
needs:
Expand Down
6 changes: 6 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ if $fix; then
find "$path" -path "$path/node_modules" -prune -o -name '*.py' -print0 | xargs -0 -r \
python3 -m black --quiet
else
if $prettier; then
echo "ℹ️ Running Prettier (without --write) on Markdown and YAML files"
prettier "$path/**/*.md" --log-level error --config .prettierrc.json --check
prettier "$path/**/*.{yml,yaml}" --log-level error --config .prettierrc.json --check
fi

echo "ℹ️ Running ESLint (without --fix)"
eslint "$path"
eslint "$path/**/**" --no-eslintrc --config .eslintrc-whitespace.json
Expand Down
Loading