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