mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
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`.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
radicle-httpd
|
||||
desktop
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user