Skip to content

Commit

Permalink
chore: replace an eslint_test with rules_lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Dec 6, 2023
1 parent 7e24bd5 commit 0b07fd1
Show file tree
Hide file tree
Showing 12 changed files with 180,232 additions and 137 deletions.
11 changes: 11 additions & 0 deletions frontend/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ query --@aspect_rules_ts//ts:skipLibCheck=always

# Required for rules_js
build --enable_runfiles

###########################
# Linting
# Enable with --config=lint
build:lint --aspects=//next.js:lint.bzl%eslint
# Gather lint reports
build:lint --output_groups=rules_lint_report --remote_download_regex='.*aspect_rules_lint.report'
# Cause build failures when there are lint warnings.
# This is a simple configuration, but you probably want to report them as code review comments instead.
# See https://github.com/aspect-build/rules_lint/blob/main/docs/linting.md#usage
build:lint --aspects_parameters=fail_on_violation=true --keep_going
2 changes: 1 addition & 1 deletion frontend/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0rc1
7.0.0rc5
1 change: 1 addition & 0 deletions frontend/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"Bazel module dependencies, see https://bazel.build/external/overview#bzlmod"

bazel_dep(name = "aspect_bazel_lib", version = "1.33.0")
bazel_dep(name = "aspect_rules_lint", version = "0.6.0")
bazel_dep(name = "aspect_rules_jest", version = "0.19.6")
bazel_dep(name = "aspect_rules_js", version = "1.32.2")
bazel_dep(name = "aspect_rules_swc", version = "1.0.2")
Expand Down
Loading

0 comments on commit 0b07fd1

Please sign in to comment.