This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new 4335de2 Move biome and oxlint to the standard lints configuration
4335de2 is described below
commit 4335de28c6872d93f8be36b33e0414644c72ddd9
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Dec 12 17:08:28 2025 +0000
Move biome and oxlint to the standard lints configuration
---
.pre-commit-config.yaml | 23 +++++++++++++++++++++++
.pre-commit-heavy.yaml | 24 ------------------------
2 files changed, 23 insertions(+), 24 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 808d705..7b78ffa 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -101,6 +101,20 @@ repos:
rev: v2.10.0
hooks:
- id: pip-audit
+- repo: https://github.com/oxc-project/mirrors-oxlint
+ rev: v1.32.0
+ hooks:
+ - id: oxlint
+ name: Oxlint JS Linter
+ types: [javascript]
+ files: ^atr/static/js/src/.*\.js$
+ args:
+ # These must be in the order deny, warn, allow
+ - --deny=correctness
+ - --deny=perf
+ - --deny=suspicious
+ - --deny=pedantic
+ - --allow=unicorn/prefer-query-selector
# - repo: https://github.com/PyCQA/flake8
# rev: 7.3.0
# hooks:
@@ -140,6 +154,15 @@ repos:
types: [javascript]
files: ^atr/static/js/src/.*\.js$
+ - id: biome-check
+ # Install biome from https://biomejs.dev/guides/manual-installation/
+ # Avoid using NPM to install it until #359 is resolved
+ name: Biome JS Linter
+ entry: biome check --write --error-on-warnings
--files-ignore-unknown=true --no-errors-on-unmatched --colors=off
+ language: system
+ types: [javascript]
+ files: ^atr/static/js/src/.*\.js$
+
- id: pyright
name: Pyright Type Check
entry: uv run pyright
diff --git a/.pre-commit-heavy.yaml b/.pre-commit-heavy.yaml
index d47f0a3..0888060 100644
--- a/.pre-commit-heavy.yaml
+++ b/.pre-commit-heavy.yaml
@@ -1,29 +1,5 @@
exclude: ^node_modules/
repos:
-- repo: local
- hooks:
- - id: biome-check
- # Install biome from https://biomejs.dev/guides/manual-installation/
- # Avoid using NPM to install it until #359 is resolved
- name: biome JS check
- entry: biome check --write --error-on-warnings
--files-ignore-unknown=true --no-errors-on-unmatched --colors=off
- language: system
- types: [javascript]
- files: ^atr/static/js/src/.*\.js$
-- repo: https://github.com/oxc-project/mirrors-oxlint
- rev: v1.32.0
- hooks:
- - id: oxlint
- name: oxlint JS linter
- types: [javascript]
- files: ^atr/static/js/src/.*\.js$
- args:
- # These must be in the order deny, warn, allow
- - --deny=correctness
- - --deny=perf
- - --deny=suspicious
- - --deny=pedantic
- - --allow=unicorn/prefer-query-selector
- repo: https://github.com/oxipng/oxipng
rev: v9.1.5
hooks:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]