summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar tony-sull <tony-sull@users.noreply.github.com> 2022-06-22 16:01:42 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-06-22 16:01:42 +0000
commitae7415612ed8f644b90a23c16843a8205cc1933b (patch)
tree286d6f7eed9fa59ac04496ece33318f09f57d5f6
parentb8c6dabfb788dc074f3520e03203b37d570b2526 (diff)
downloadastro-ae7415612ed8f644b90a23c16843a8205cc1933b.tar.gz
astro-ae7415612ed8f644b90a23c16843a8205cc1933b.tar.zst
astro-ae7415612ed8f644b90a23c16843a8205cc1933b.zip
[ci] format
-rw-r--r--.eslintrc.cjs2
-rw-r--r--packages/astro/test/ssr-adapter-build-config.test.js4
-rw-r--r--packages/integrations/partytown/src/sirv.ts3
3 files changed, 6 insertions, 3 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 6cba70e1a..28ddba1e6 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -17,6 +17,6 @@ module.exports = {
'prefer-const': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
- 'no-only-tests/no-only-tests': 'error'
+ 'no-only-tests/no-only-tests': 'error',
},
};
diff --git a/packages/astro/test/ssr-adapter-build-config.test.js b/packages/astro/test/ssr-adapter-build-config.test.js
index 37c6ec923..1f76d7e6a 100644
--- a/packages/astro/test/ssr-adapter-build-config.test.js
+++ b/packages/astro/test/ssr-adapter-build-config.test.js
@@ -26,7 +26,9 @@ describe('Integration buildConfig hook', () => {
if (id === '@my-ssr') {
return id;
} else if (id === 'astro/app') {
- const viteId = viteID(new URL('../dist/core/app/index.js', import.meta.url));
+ const viteId = viteID(
+ new URL('../dist/core/app/index.js', import.meta.url)
+ );
return viteId;
}
},
diff --git a/packages/integrations/partytown/src/sirv.ts b/packages/integrations/partytown/src/sirv.ts
index fa9f9ad25..78489d2ac 100644
--- a/packages/integrations/partytown/src/sirv.ts
+++ b/packages/integrations/partytown/src/sirv.ts
@@ -224,7 +224,8 @@ export default function (dir, opts = {}) {
}
let data =
- fileLookup(pathname, extns) || (isSPA && !isMatch(pathname, ignores) && fileLookup(fallback, extns));
+ fileLookup(pathname, extns) ||
+ (isSPA && !isMatch(pathname, ignores) && fileLookup(fallback, extns));
if (!data) return next ? next() : isNotFound(req, res);
if (isEtag && req.headers['if-none-match'] === data.headers['ETag']) {