From e5e79605d69cdac9b686eb678f141b5395e37b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 13 Oct 2026 11:21:07 +0200 Subject: [PATCH] Keep root lint checks out of `desktop/` ESLint picks up desktop's own config for its files, which only works with desktop's dependencies installed. Desktop is linted by its own `scripts/check-js`. --- .dockerignore | 2 ++ .prettierignore | 1 + scripts/check | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index a0daf0291..010c4856f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,3 +11,5 @@ radicle-httpd/target radicle-search/target target .wrangler +# The desktop app, with its own node_modules and target, isn't part of these images. +desktop diff --git a/.prettierignore b/.prettierignore index 846e22817..b48909763 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ radicle-httpd +desktop diff --git a/scripts/check b/scripts/check index 583a1ab9b..f7d3d08d1 100755 --- a/scripts/check +++ b/scripts/check @@ -8,5 +8,7 @@ npx svelte-check --tsconfig tsconfig.json --config ./vite.config.ts --fail-on-wa # CI can then carry them between builds. They share one directory because a # Buildkite cache path is always a directory, never a file. mkdir -p .lintcache -npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 . +# desktop/ has its own eslint config, which eslint would otherwise pick up for +# its files. It is linted by desktop/scripts/check-js. +npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 --ignore-pattern desktop/ . npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier