Unverified Commit f1b74efe authored by kilianpaquier's avatar kilianpaquier
Browse files

fix(bun): handle lint command like pnpm

parent dde345cb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -748,8 +748,7 @@ node-lint:
        # generate eslint report for SonarQube
        # shellcheck disable=SC2086
        log_info "SonarQube detected: producing ESLint JSON report..."
        if [ "$NODE_MANAGER" = "pnpm" ]
        then
        if [ "$NODE_MANAGER" = "pnpm" ] || [ "$NODE_MANAGER" = "bun" ]; then
          $NODE_MANAGER $NODE_LINT_ARGS --format=json --output-file=reports/node-lint.xslint.json || true
        else
          $NODE_MANAGER $NODE_LINT_ARGS -- --format=json --output-file=reports/node-lint.xslint.json || true
@@ -765,8 +764,7 @@ node-lint:
    # run ESLint with console output and GitLab report
    # shellcheck disable=SC2086
    - |
      if [ "$NODE_MANAGER" = "pnpm" ]
      then
      if [ "$NODE_MANAGER" = "pnpm" ] || [ "$NODE_MANAGER" = "bun" ]; then
        ESLINT_CODE_QUALITY_REPORT=reports/node-lint.gitlab.json $NODE_MANAGER $NODE_LINT_ARGS --format=gitlab
      else
        ESLINT_CODE_QUALITY_REPORT=reports/node-lint.gitlab.json $NODE_MANAGER $NODE_LINT_ARGS -- --format=gitlab