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/delint | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tools/delint (limited to 'tools/delint') diff --git a/tools/delint b/tools/delint new file mode 100755 index 0000000..132841b --- /dev/null +++ b/tools/delint @@ -0,0 +1,11 @@ +#!/bin/bash -e + +## tools/delint +## +## Automatically fixes lintable mistakes and stylistic problems, where possible. + +cd "$(dirname "$0")/.." + +npx eslint --fix +cargo fix +cargo clippy --fix -- cgit v1.2.3