Skip to content

Commit a3e4464

Browse files
authored
fix: eslint deps attr access (#614)
Fixes the attr access when there is no field `deps` apart of the attrs.
1 parent 88ef742 commit a3e4464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lint/eslint.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _MNEMONIC = "AspectRulesLintESLint"
6262
def _gather_inputs(ctx, srcs, files):
6363
inputs = copy_files_to_bin_actions(ctx, srcs)
6464

65-
js_inputs = ctx.attr._config_files + ctx.rule.attr.deps + files
65+
js_inputs = ctx.attr._config_files + getattr(ctx.rule.attr, "deps", []) + files
6666

6767
# Linting of ts targets often requires the tsconfig
6868
if hasattr(ctx.rule.attr, "tsconfig"):

0 commit comments

Comments
 (0)