chore: fix blog lint issues

This commit is contained in:
Calum H. (IMB11) 2025-08-01 15:05:45 +01:00 committed by Calum H.
parent 981cf159bf
commit 2376bea510
4 changed files with 37 additions and 36 deletions

View File

@ -1,4 +1,5 @@
import * as path from 'path' import * as path from 'path'
import { repoPath } from './utils' import { repoPath } from './utils'
/** /**

View File

@ -1,9 +1,9 @@
import { promises as fs } from 'fs' import { promises as fs } from 'fs'
import * as path from 'path'
import { repoPath, toVarName } from './utils'
import { glob } from 'glob' import { glob } from 'glob'
import * as path from 'path'
import { PUBLIC_SRC, PUBLIC_LOCATIONS, ARTICLES_GLOB, COMPILED_DIR } from './blog.config' import { ARTICLES_GLOB, COMPILED_DIR, PUBLIC_LOCATIONS, PUBLIC_SRC } from './blog.config'
import { repoPath, toVarName } from './utils'
async function checkPublicAssets() { async function checkPublicAssets() {
const srcFiles = await glob('**/*', { cwd: PUBLIC_SRC, dot: true }) const srcFiles = await glob('**/*', { cwd: PUBLIC_SRC, dot: true })

View File

@ -1,23 +1,23 @@
import { promises as fs } from 'fs'
import * as path from 'path'
import matter from 'gray-matter'
import { md } from '@modrinth/utils' import { md } from '@modrinth/utils'
import { promises as fs } from 'fs'
import { glob } from 'glob'
import matter from 'gray-matter'
import { minify } from 'html-minifier-terser' import { minify } from 'html-minifier-terser'
import { copyDir, toVarName } from './utils' import * as path from 'path'
import RSS from 'rss' import RSS from 'rss'
import { parseStringPromise } from 'xml2js' import { parseStringPromise } from 'xml2js'
import { glob } from 'glob'
import { import {
ARTICLES_GLOB, ARTICLES_GLOB,
COMPILED_DIR, COMPILED_DIR,
ROOT_FILE,
PUBLIC_SRC,
PUBLIC_LOCATIONS,
RSS_PATH,
JSON_PATH, JSON_PATH,
PUBLIC_LOCATIONS,
PUBLIC_SRC,
ROOT_FILE,
RSS_PATH,
SITE_URL, SITE_URL,
} from './blog.config' } from './blog.config'
import { copyDir, toVarName } from './utils'
async function ensureCompiledDir() { async function ensureCompiledDir() {
await fs.mkdir(COMPILED_DIR, { recursive: true }) await fs.mkdir(COMPILED_DIR, { recursive: true })

View File

@ -1,30 +1,30 @@
// AUTO-GENERATED FILE - DO NOT EDIT // AUTO-GENERATED FILE - DO NOT EDIT
import { article as windows_borderless_malware_disclosure } from './windows_borderless_malware_disclosure' import { article as a_new_chapter_for_modrinth_servers } from './a_new_chapter_for_modrinth_servers'
import { article as whats_modrinth } from './whats_modrinth' import { article as accelerating_development } from './accelerating_development'
import { article as becoming_sustainable } from './becoming_sustainable'
import { article as capital_return } from './capital_return'
import { article as carbon_ads } from './carbon_ads'
import { article as creator_monetization } from './creator_monetization'
import { article as creator_update } from './creator_update'
import { article as creator_updates_july_2025 } from './creator_updates_july_2025'
import { article as design_refresh } from './design_refresh'
import { article as download_adjustment } from './download_adjustment'
import { article as knossos_v2_1_0 } from './knossos_v2_1_0'
import { article as licensing_guide } from './licensing_guide'
import { article as modpack_changes } from './modpack_changes'
import { article as modpacks_alpha } from './modpacks_alpha'
import { article as modrinth_app_beta } from './modrinth_app_beta'
import { article as modrinth_beta } from './modrinth_beta'
import { article as modrinth_servers_beta } from './modrinth_servers_beta'
import { article as new_site_beta } from './new_site_beta'
import { article as plugins_resource_packs } from './plugins_resource_packs'
import { article as pride_campaign_2025 } from './pride_campaign_2025'
import { article as redesign } from './redesign'
import { article as skins_now_in_modrinth_app } from './skins_now_in_modrinth_app'
import { article as two_years_of_modrinth } from './two_years_of_modrinth' import { article as two_years_of_modrinth } from './two_years_of_modrinth'
import { article as two_years_of_modrinth_history } from './two_years_of_modrinth_history' import { article as two_years_of_modrinth_history } from './two_years_of_modrinth_history'
import { article as skins_now_in_modrinth_app } from './skins_now_in_modrinth_app' import { article as whats_modrinth } from './whats_modrinth'
import { article as redesign } from './redesign' import { article as windows_borderless_malware_disclosure } from './windows_borderless_malware_disclosure'
import { article as pride_campaign_2025 } from './pride_campaign_2025'
import { article as plugins_resource_packs } from './plugins_resource_packs'
import { article as new_site_beta } from './new_site_beta'
import { article as modrinth_servers_beta } from './modrinth_servers_beta'
import { article as modrinth_beta } from './modrinth_beta'
import { article as modrinth_app_beta } from './modrinth_app_beta'
import { article as modpacks_alpha } from './modpacks_alpha'
import { article as modpack_changes } from './modpack_changes'
import { article as licensing_guide } from './licensing_guide'
import { article as knossos_v2_1_0 } from './knossos_v2_1_0'
import { article as download_adjustment } from './download_adjustment'
import { article as design_refresh } from './design_refresh'
import { article as creator_updates_july_2025 } from './creator_updates_july_2025'
import { article as creator_update } from './creator_update'
import { article as creator_monetization } from './creator_monetization'
import { article as carbon_ads } from './carbon_ads'
import { article as capital_return } from './capital_return'
import { article as becoming_sustainable } from './becoming_sustainable'
import { article as accelerating_development } from './accelerating_development'
import { article as a_new_chapter_for_modrinth_servers } from './a_new_chapter_for_modrinth_servers'
export const articles = [ export const articles = [
windows_borderless_malware_disclosure, windows_borderless_malware_disclosure,