Skip to content

Commit

Permalink
refactor: use debug flag to control eslint debug arg (#334)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Eagle <alex@aspect.dev>
  • Loading branch information
sallustfire and alexeagle authored Jul 17, 2024
1 parent 67a250a commit 85f628b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint/eslint.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def eslint_action(ctx, executable, srcs, stdout, exit_code = None, format = "sty
args.add("--no-warn-ignored")
file_inputs = [ctx.attr._workaround_17660]

# TODO: enable if debug config, similar to rules_ts
# args.add("--debug")
if ctx.attr._options[LintOptionsInfo].debug:
args.add("--debug")
if type(format) == "string":
args.add_all(["--format", format])
else:
Expand Down

0 comments on commit 85f628b

Please sign in to comment.