From 12434d455067fe2c24d6073113f2c34f46f1a0c7 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 27 May 2025 00:50:52 -0400 Subject: 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. --- tools/check-lint | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tools/check-lint (limited to 'tools/check-lint') 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 -- cgit v1.2.3