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. --- eslint.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js index 7d23626..29451a9 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,10 @@ import prettier from 'eslint-config-prettier'; import svelte from 'eslint-plugin-svelte'; -export default [prettier, ...svelte.configs['flat/prettier']]; + +export default [ + prettier, + ...svelte.configs['flat/prettier'], + { + ignores: ['target/'], + }, +]; -- cgit v1.2.3 From c0f3495ea54d12b2bad9b937ea9334594d0aa248 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 27 May 2025 01:40:53 -0400 Subject: Don't lint the coverage output. This is entirely mechanical; we don't consider coverage reports to be "part of the project," and there's no point in wasting `eslint`'s time (or ours) in reviewing lints there. --- eslint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js index 29451a9..57b0875 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,6 +5,6 @@ export default [ prettier, ...svelte.configs['flat/prettier'], { - ignores: ['target/'], + ignores: ['target/', 'coverage/'], }, ]; -- cgit v1.2.3