diff --git a/explorer/.prettierignore b/explorer/.prettierignore index b48909763..af9083660 100644 --- a/explorer/.prettierignore +++ b/explorer/.prettierignore @@ -1,2 +1 @@ -radicle-httpd -desktop +crates diff --git a/explorer/.prettierrc b/explorer/.prettierrc index daa2f1ece..99e78b233 100644 --- a/explorer/.prettierrc +++ b/explorer/.prettierrc @@ -3,6 +3,6 @@ "plugins": ["prettier-plugin-svelte"], "svelteSortOrder": "options-scripts-styles-markup", "bracketSameLine": true, - "proseWrap": "never", + "proseWrap": "always", "htmlWhitespaceSensitivity": "ignore" } diff --git a/explorer/package.json b/explorer/package.json index 85edbfb93..c32c1276f 100644 --- a/explorer/package.json +++ b/explorer/package.json @@ -10,7 +10,7 @@ "check": "scripts/check", "check:ci": "scripts/check-ci", "check:radicle-httpd": "cargo clippy --all --tests && cargo fmt --all --check", - "format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write", + "format": "npx prettier . --write", "test:unit": "TZ='UTC' vitest run", "test:e2e": "NODE_CONFIG_ENV='test' TZ='UTC' playwright test", "test:e2e:local": "scripts/compile-local-httpd && USE_LOCAL_HTTPD=true NODE_CONFIG_ENV='test' TZ='UTC' playwright test", diff --git a/explorer/scripts/check b/explorer/scripts/check index 583a1ab9b..ea36f8d1b 100755 --- a/explorer/scripts/check +++ b/explorer/scripts/check @@ -9,4 +9,4 @@ npx svelte-check --tsconfig tsconfig.json --config ./vite.config.ts --fail-on-wa # 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 . -npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier +npx prettier . --check --cache --cache-location .lintcache/prettier