Skip to content

Commit

Permalink
backstage: run linters with --fix so people can commit the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Nov 16, 2021
1 parent 5d2f6cb commit d5eb269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/component/lint.bash
Expand Up @@ -8,7 +8,7 @@ verify-origami-json
verify-package-json

if test -f ".eslintrc.cjs"; then
args=(-c ".eslintrc.cjs" --no-error-on-unmatched-pattern)
args=(-c ".eslintrc.cjs" --no-error-on-unmatched-pattern --fix)
if test -f ".eslintignore"; then
args+=(--ignore-path ".eslintignore")
fi
Expand All @@ -17,7 +17,7 @@ fi

echo "::add-matcher::.github/stylelint-compact-problem-matcher.json"
if test -f ".stylelintrc.cjs"; then
npx stylelint --config=".stylelintrc.cjs" --allow-empty-input "**/*.scss"
npx stylelint --config=".stylelintrc.cjs" --allow-empty-input "**/*.scss" --fix
fi

# we need to cd back to root and run remark-cli from there
Expand Down

0 comments on commit d5eb269

Please sign in to comment.