From ae7415612ed8f644b90a23c16843a8205cc1933b Mon Sep 17 00:00:00 2001 From: tony-sull Date: Wed, 22 Jun 2022 16:01:42 +0000 Subject: [PATCH] [ci] format --- .eslintrc.cjs | 2 +- packages/astro/test/ssr-adapter-build-config.test.js | 4 +++- packages/integrations/partytown/src/sirv.ts | 3 ++- 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']) {