mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
b8c6dabfb7
commit
ae7415612e
3 changed files with 6 additions and 3 deletions
|
@ -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',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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']) {
|
||||
|
|
Loading…
Reference in a new issue