Skip to content

Commit

Permalink
Use new formatters flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
withinfocus committed Nov 6, 2023
1 parent 412bff4 commit 7cacacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .git-hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
[ -z "$FILES" ] && exit 0

if npx mega-linter-runner --containername "megalinter-incremental" \
--remove-container --fix --env "'APPLY_FIXES=all'" \
if npx mega-linter-runner -r beta --containername "megalinter-incremental" \
--flavor formatters --remove-container --fix --env "'APPLY_FIXES=all'" \
--env "'CLEAR_REPORT_FOLDER=true'" --env "'LOG_LEVEL=warning'" \
--filesonly $FILES; then
echo "$FILES" | xargs git add
Expand Down

0 comments on commit 7cacacd

Please sign in to comment.