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
filegroup with lint-with-stylelint in the tags:
filegroup_tags and rule_kinds attributes below to customize this behavior.
Usage
Addstylelint as a devDependency in your package.json, and declare a binary target for Bazel to execute it.
For example in tools/lint/BUILD.bazel:
tools/lint/linters.bzl:
.aspect/cli/config.yaml for aspect lint.
Function: stylelint_action
Spawn stylelint as a Bazel action
Parameters
an action context OR aspect context
struct with an _stylelint field
list of file objects to lint
output file containing the stderr or —output-file of stylelint
output file containing the exit code of stylelint.
If None, then fail the build when stylelint exits non-zero.
Exit codes may be:
1 - fatal error
2 - lint problem
64 - invalid CLI usage
78 - invalid configuration file
environment variables for stylelint
additional command-line arguments
a formatter to add as a command line argument
output file for patch (optional). If provided, uses run_patcher instead of run_shell.
Function: lint_stylelint_aspect
A factory function to create a linter aspect.
Parameters
the stylelint binary, typically a rule like
label(s) of the stylelint config file
which tags on a
filegroup indicate that it should be visited by the aspect
