Documentation Index
Fetch the complete documentation index at: https://docs.aspect.build/llms.txt
Use this file to discover all available pages before exploring further.
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
an action context OR aspect context
struct with an eslint field
list of file objects to lint
output file containing the stdout or —output-file of eslint
output file containing the exit code of eslint.
If None, then fail the build when eslint exits non-zero.
value for eslint
--format CLI flagenvironment variables for eslint
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
the eslint binary, typically a rule like
label(s) of the eslint config file(s)

