diff --git a/lib/plugins/helper/date.ts b/lib/plugins/helper/date.ts index 01f3ec356a..b347770dc8 100644 --- a/lib/plugins/helper/date.ts +++ b/lib/plugins/helper/date.ts @@ -92,4 +92,4 @@ export {fullDateHelper as full_date}; export {relativeDateHelper as relative_date}; export {timeTagHelper as time_tag}; export {moment}; -export var toMomentLocale = moize.shallow(_toMomentLocale); +export const toMomentLocale = moize.shallow(_toMomentLocale); diff --git a/lib/theme/processors/config.ts b/lib/theme/processors/config.ts index b2a175b2b0..2da78854d6 100644 --- a/lib/theme/processors/config.ts +++ b/lib/theme/processors/config.ts @@ -15,4 +15,4 @@ export function process(file) { }); } -export var pattern = new Pattern(/^_config\.\w+$/); +export const pattern = new Pattern(/^_config\.\w+$/); diff --git a/lib/theme/processors/i18n.ts b/lib/theme/processors/i18n.ts index 515c6b2e5b..fcdc457aae 100644 --- a/lib/theme/processors/i18n.ts +++ b/lib/theme/processors/i18n.ts @@ -18,4 +18,4 @@ export function process(file) { }); } -export var pattern = new Pattern('languages/*path'); +export const pattern = new Pattern('languages/*path'); diff --git a/lib/theme/processors/source.ts b/lib/theme/processors/source.ts index 97688b7ba7..f7ff6a4a0c 100644 --- a/lib/theme/processors/source.ts +++ b/lib/theme/processors/source.ts @@ -22,7 +22,7 @@ export function process(file) { }); } -export var pattern = new Pattern(path => { +export const pattern = new Pattern(path => { if (!path.startsWith('source/')) return false; path = path.substring(7); diff --git a/lib/theme/processors/view.ts b/lib/theme/processors/view.ts index fe3cf1d04c..bb0d44d1f8 100644 --- a/lib/theme/processors/view.ts +++ b/lib/theme/processors/view.ts @@ -1,4 +1,4 @@ -import {Pattern} from 'hexo-util'; +import { Pattern } from 'hexo-util'; export function process(file) { const { path } = file.params; @@ -13,4 +13,4 @@ export function process(file) { }); } -export var pattern = new Pattern('layout/*path'); +export const pattern = new Pattern('layout/*path');