Documentation for @aspect_rules_lint@v2.1.0 — View source
tools/lint/BUILD.bazel:
tools/lint/linters.bzl:
With ts_project prior to version 3.2.0
Prior to [commit 5e25e91]https://github.com/aspect-build/rules_ts/commit/5e25e91420947e3a81938d8eb076803e5cf51fe2) the rule produced by thets_project macro and a custom transpiler expanded the macro to
multiple targets, including changing the default target to js_library.
Since you want to lint the original TypeScript source files, the ts_project rule produced
by the macro is the one you want to lint, so when used with an eslint_test you should use
the [name]_typings label:
Function: eslint_action
Create a Bazel Action that spawns an eslint process.
Adapter for wrapping Bazel around
https://eslint.org/docs/latest/use/command-line-interface
Parameters
unknown
required
an action context OR aspect context
unknown
required
struct with an eslint field
unknown
required
list of file objects to lint
unknown
required
output file containing the stdout or —output-file of eslint
unknown
default:"None"
output file containing the exit code of eslint.
If None, then fail the build when eslint exits non-zero.
unknown
default:"stylish"
value for eslint
--format CLI flagunknown
default:"{}"
environment variables for eslint
unknown
default:"None"
output file for patch (optional). If provided, uses run_patcher instead of run/run_shell.
Function: lint_eslint_aspect
A factory function to create a linter aspect.
Parameters
unknown
required
the eslint binary, typically a rule like
unknown
required
label(s) of the eslint config file(s)

