chore: fix moderation lint issues

This commit is contained in:
Calum H. (IMB11) 2025-08-01 15:05:31 +01:00 committed by Calum H.
parent 52720ce06a
commit 981cf159bf
20 changed files with 52 additions and 36 deletions

View File

@ -1,18 +1,18 @@
import type { Stage } from '../types/stage'
import modpackPermissionsStage from './modpack-permissions-stage'
import categories from './stages/categories'
import reupload from './stages/reupload'
import description from './stages/description'
import gallery from './stages/gallery'
import license from './stages/license'
import links from './stages/links'
import reupload from './stages/reupload'
import ruleFollowing from './stages/rule-following'
import sideTypes from './stages/side-types'
import statusAlerts from './stages/status-alerts'
import summary from './stages/summary'
import titleSlug from './stages/title-slug'
import versions from './stages/versions'
import license from './stages/license'
import undefinedProject from './stages/undefined-project'
import statusAlerts from './stages/status-alerts'
import versions from './stages/versions'
export default [
titleSlug,

View File

@ -1,6 +1,7 @@
import type { ModerationModpackPermissionApprovalType, Project } from '@modrinth/utils'
import type { Stage } from '../types/stage'
import { PackageOpenIcon } from '@modrinth/assets'
import type { ModerationModpackPermissionApprovalType, Project } from '@modrinth/utils'
import type { Stage } from '../types/stage'
export default {
id: 'modpack-permissions',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { TagsIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const categories: Stage = {
title: "Are the project's tags accurate?",
id: 'tags',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { LibraryIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const description: Stage = {
title: 'Is the description sufficient, accurate, and accessible?',
id: 'description',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { ImageIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const gallery: Stage = {
title: "Are this project's gallery images sufficient?",
id: 'gallery',

View File

@ -1,4 +1,5 @@
import { BookTextIcon } from '@modrinth/assets'
import type { Stage } from '../../types/stage'
const licensesNotRequiringSource: string[] = [

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { LinkIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const links: Stage = {
title: "Are the project's links accurate and accessible?",
id: 'links',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { CopyrightIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const reupload: Stage = {
title: 'Does the author have proper permissions to post this project?',
id: 'reupload',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { ListBulletedIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const ruleFollowing: Stage = {
title: 'Does this project violate the rules?',
id: 'rule-following',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { GlobeIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const sideTypes: Stage = {
title: "Is the project's environment information accurate?",
id: 'environment',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import { TriangleAlertIcon } from '@modrinth/assets'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import type { Stage } from '../../types/stage'
const statusAlerts: Stage = {
title: `Is anything else affecting this project's status?`,
id: 'status-alerts',

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction } from '../../types/actions'
import { AlignLeftIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const summary: Stage = {
title: "Is the project's summary sufficient?",
text: async () => (await import('../messages/checklist-text/summary/summary.md?raw')).default,

View File

@ -1,4 +1,5 @@
import { BookOpenIcon } from '@modrinth/assets'
import type { Stage } from '../../types/stage'
import type { Project } from '@modrinth/utils'

View File

@ -1,4 +1,5 @@
import { XIcon } from '@modrinth/assets'
import type { Stage } from '../../types/stage'
const undefinedProjectStage: Stage = {

View File

@ -1,7 +1,8 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import { VersionIcon } from '@modrinth/assets'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import type { Stage } from '../../types/stage'
const versions: Stage = {
title: "Are this project's files correct?",
id: 'versions',

View File

@ -1,11 +1,10 @@
export * from './types/actions'
export * from './types/messages'
export * from './types/stage'
export * from './types/keybinds'
export * from './types/reports'
export * from './utils'
export { finalPermissionMessages } from './data/modpack-permissions-stage'
export { default as checklist } from './data/checklist'
export { default as keybinds } from './data/keybinds'
export { finalPermissionMessages } from './data/modpack-permissions-stage'
export { default as reportQuickReplies } from './data/report-quick-replies'
export * from './types/actions'
export * from './types/keybinds'
export * from './types/messages'
export * from './types/reports'
export * from './types/stage'
export * from './utils'

View File

@ -1,4 +1,5 @@
import type { Project } from '@modrinth/utils'
import type { WeightedMessage } from './messages'
export type ActionType =

View File

@ -1,4 +1,4 @@
import type { Project, Report, Thread, User, Version, DelphiReport } from '@modrinth/utils'
import type { DelphiReport, Project, Report, Thread, User, Version } from '@modrinth/utils'
export interface OwnershipTarget {
name: string

View File

@ -1,7 +1,8 @@
import type { Project } from '@modrinth/utils'
import type { Action } from './actions'
import type { FunctionalComponent, SVGAttributes } from 'vue'
import type { Action } from './actions'
/**
* Represents a moderation stage with associated actions and optional navigation logic.
*/

View File

@ -1,4 +1,5 @@
import type { Project } from '@modrinth/utils'
import type {
Action,
AdditionalTextInput,