Skip to content

Commit 2952f33

Browse files
committed
chore: lint
1 parent f192e16 commit 2952f33

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Diff for: src/module.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ import { withBase, withoutBase, withoutTrailingSlash } from 'ufo'
1717
import { globby } from 'globby'
1818
import type { CreateFilterOptions } from './runtime/util/urlFilter'
1919
import { buildSitemap, buildSitemapIndex } from './runtime/util/builder'
20-
import type { NuxtSimpleSitemapRuntime, ResolvedSitemapEntry, SitemapEntry, SitemapFullEntry, SitemapRenderCtx, SitemapRoot } from './types'
20+
import type { MaybeArray, NuxtSimpleSitemapRuntime, ResolvedSitemapEntry, SitemapEntry, SitemapFullEntry, SitemapRenderCtx, SitemapRoot } from './types'
2121
import {
2222
generateRoutesFromFiles,
2323
normalisePagesForSitemap,
2424
} from './runtime/util/pageUtils'
25-
import {MaybeArray} from "./types";
2625

2726
export * from './types'
2827

Diff for: src/runtime/util/builder.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function buildSitemapIndex(options: BuildSitemapOptions) {
4646
chunks[sitemap] = chunks[sitemap] || { urls: [] }
4747
chunks[sitemap].urls = await generateSitemapEntries({
4848
...options,
49-
sitemapConfig: {...options.sitemapConfig, ...sitemapsConfig[sitemap]},
49+
sitemapConfig: { ...options.sitemapConfig, ...sitemapsConfig[sitemap] },
5050
})
5151
}
5252
}
@@ -69,9 +69,8 @@ export async function buildSitemapIndex(options: BuildSitemapOptions) {
6969
}
7070

7171
// allow extending the index sitemap
72-
if (sitemapsConfig.index) {
72+
if (sitemapsConfig.index)
7373
entries.push(...sitemapsConfig.index)
74-
}
7574

7675
const sitemapXml = entries.map(e => [
7776
' <sitemap>',

Diff for: test/changeApiUrl.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ await setup({
2121
})
2222
describe('base', () => {
2323
it('basic', async () => {
24-
2524
const posts = await $fetch('/base/posts-sitemap.xml')
2625

2726
// expect(posts).not.match(/\/base\/base\//g)
@@ -63,6 +62,5 @@ describe('base', () => {
6362
</urlset>
6463
<!-- XML Sitemap generated by Nuxt Simple Sitemap -->"
6564
`)
66-
6765
}, 60000)
6866
})

0 commit comments

Comments
 (0)