Skip to content

Commit 04286dd

Browse files
authored
feat: allow ts_project to point to the eslint config (#848)
ESLint flat config is not ergonomic in a monorepo. Many projects would prefer to have the eslint config locally, for example one-per-package.json See aspect-build/rules_lint@main...eslint_no_flat for how this may be used. FYI @jfirebaugh @walkerburgin
1 parent 37e26c9 commit 04286dd

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

docs/rules.md

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/private/ts_lib.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ https://docs.aspect.build/rulesets/aspect_rules_js/docs/js_library#deps for more
9696
mandatory = True,
9797
allow_single_file = [".json"],
9898
),
99+
"eslintconfig": attr.label(
100+
doc = """.eslintrc file, or other filenames accepted by ESLint.
101+
see https://eslint.org/docs/latest/use/configure/configuration-files
102+
Note, this is unused in rules_ts, but exists to allow the information to propagate through the dependency graph.
103+
For example, it can be used by the eslint aspect in Aspect's rules_lint.
104+
""",
105+
allow_single_file = True,
106+
),
99107
"isolated_typecheck": attr.bool(
100108
doc = """\
101109
Whether type-checking should be a separate action.

0 commit comments

Comments
 (0)