Skip to content

Commit dda6a85

Browse files
author
Colin McNeil
committed
Fix StandardJS --fix arg
1 parent e4fa162 commit dda6a85

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

prompts/eslint/scripts/lint-standardjs.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ echo "Running StandardJS..."
2727

2828
# If typescript is false, run standard
2929
if [ $TYPESCRIPT == 'false' ]; then
30+
$LINT_ARGS="$FILES"
31+
# If FIX
32+
if [ $FIX == "true" ]; then
33+
LINT_ARGS="--fix $FILES"
34+
fi
3035
# Pass files array as args to standard
31-
standard $FILES
36+
standard $LINT_ARGS
3237
exit $?
3338
fi
3439

@@ -70,7 +75,7 @@ for TS_ROOT in $TS_ROOTS; do
7075
continue
7176
fi
7277
# If FIX
73-
if [ $FIX == True ]; then
78+
if [ $FIX == "true" ]; then
7479
LINT_ARGS="--fix $TS_FILES_IN_ROOT"
7580
else
7681
LINT_ARGS="$TS_FILES_IN_ROOT"

0 commit comments

Comments
 (0)