summaryrefslogtreecommitdiff
path: root/tools/check-lint
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-05-27 00:50:52 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-06-09 18:50:11 -0400
commit12434d455067fe2c24d6073113f2c34f46f1a0c7 (patch)
treea7c79038df8e83f29be48cf7b2f21e2dda0e0090 /tools/check-lint
parent71919b461f25bed1bb4708b0494d603de373ae11 (diff)
Consolidate project linting into tool scripts.
The new `tools/check-lint` script checks lints across _all_ lintable files - JS (through `eslint`), and Rust (through `clippy` and `cargo check`). It also checks `eslint` against the whole project, not just against what's in the `ui` subdir, which means it now catches lintable issues in various JS config files.
Diffstat (limited to 'tools/check-lint')
-rwxr-xr-xtools/check-lint11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/check-lint b/tools/check-lint
new file mode 100755
index 0000000..ab7fdd3
--- /dev/null
+++ b/tools/check-lint
@@ -0,0 +1,11 @@
+#!/bin/bash -e
+
+## tools/check-lint
+##
+## Detects lintable mistakes and stylistic problems.
+
+cd "$(dirname "$0")/.."
+
+npx eslint
+cargo check
+cargo clippy