mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 00:32:47 +02:00
chore(v2): Fix a lot of eslint warnings (#2972)
This commit is contained in:
parent
4aa77651d3
commit
3611c96f90
46 changed files with 145 additions and 130 deletions
|
@ -9,7 +9,7 @@ import fs from 'fs-extra';
|
|||
import path from 'path';
|
||||
import {PluginOptions} from './types';
|
||||
import createSitemap from './createSitemap';
|
||||
import {LoadContext, Props} from '@docusaurus/types';
|
||||
import {LoadContext, Props, Plugin} from '@docusaurus/types';
|
||||
|
||||
const DEFAULT_OPTIONS: PluginOptions = {
|
||||
cacheTime: 600 * 1000, // 600 sec - cache purge period.
|
||||
|
@ -20,7 +20,7 @@ const DEFAULT_OPTIONS: PluginOptions = {
|
|||
export default function pluginSitemap(
|
||||
_context: LoadContext,
|
||||
opts: Partial<PluginOptions>,
|
||||
) {
|
||||
): Plugin<void> {
|
||||
const options = {...DEFAULT_OPTIONS, ...opts};
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue