0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
tony-sull 2022-06-22 16:01:42 +00:00 committed by github-actions[bot]
parent b8c6dabfb7
commit ae7415612e
3 changed files with 6 additions and 3 deletions

View file

@ -17,6 +17,6 @@ module.exports = {
'prefer-const': 'off', 'prefer-const': 'off',
'no-shadow': 'off', 'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'], '@typescript-eslint/no-shadow': ['error'],
'no-only-tests/no-only-tests': 'error' 'no-only-tests/no-only-tests': 'error',
}, },
}; };

View file

@ -26,7 +26,9 @@ describe('Integration buildConfig hook', () => {
if (id === '@my-ssr') { if (id === '@my-ssr') {
return id; return id;
} else if (id === 'astro/app') { } 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; return viteId;
} }
}, },

View file

@ -224,7 +224,8 @@ export default function (dir, opts = {}) {
} }
let data = 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 (!data) return next ? next() : isNotFound(req, res);
if (isEtag && req.headers['if-none-match'] === data.headers['ETag']) { if (isEtag && req.headers['if-none-match'] === data.headers['ETag']) {