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 type { Stage } from '../types/stage'
import modpackPermissionsStage from './modpack-permissions-stage' import modpackPermissionsStage from './modpack-permissions-stage'
import categories from './stages/categories' import categories from './stages/categories'
import reupload from './stages/reupload'
import description from './stages/description' import description from './stages/description'
import gallery from './stages/gallery' import gallery from './stages/gallery'
import license from './stages/license'
import links from './stages/links' import links from './stages/links'
import reupload from './stages/reupload'
import ruleFollowing from './stages/rule-following' import ruleFollowing from './stages/rule-following'
import sideTypes from './stages/side-types' import sideTypes from './stages/side-types'
import statusAlerts from './stages/status-alerts'
import summary from './stages/summary' import summary from './stages/summary'
import titleSlug from './stages/title-slug' import titleSlug from './stages/title-slug'
import versions from './stages/versions'
import license from './stages/license'
import undefinedProject from './stages/undefined-project' import undefinedProject from './stages/undefined-project'
import statusAlerts from './stages/status-alerts' import versions from './stages/versions'
export default [ export default [
titleSlug, 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 { PackageOpenIcon } from '@modrinth/assets'
import type { ModerationModpackPermissionApprovalType, Project } from '@modrinth/utils'
import type { Stage } from '../types/stage'
export default { export default {
id: 'modpack-permissions', 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 { TagsIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const categories: Stage = { const categories: Stage = {
title: "Are the project's tags accurate?", title: "Are the project's tags accurate?",
id: 'tags', 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 { LibraryIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const description: Stage = { const description: Stage = {
title: 'Is the description sufficient, accurate, and accessible?', title: 'Is the description sufficient, accurate, and accessible?',
id: 'description', 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 { ImageIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const gallery: Stage = { const gallery: Stage = {
title: "Are this project's gallery images sufficient?", title: "Are this project's gallery images sufficient?",
id: 'gallery', id: 'gallery',

View File

@ -1,4 +1,5 @@
import { BookTextIcon } from '@modrinth/assets' import { BookTextIcon } from '@modrinth/assets'
import type { Stage } from '../../types/stage' import type { Stage } from '../../types/stage'
const licensesNotRequiringSource: string[] = [ 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 { LinkIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const links: Stage = { const links: Stage = {
title: "Are the project's links accurate and accessible?", title: "Are the project's links accurate and accessible?",
id: 'links', 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 { CopyrightIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const reupload: Stage = { const reupload: Stage = {
title: 'Does the author have proper permissions to post this project?', title: 'Does the author have proper permissions to post this project?',
id: 'reupload', 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 { ListBulletedIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const ruleFollowing: Stage = { const ruleFollowing: Stage = {
title: 'Does this project violate the rules?', title: 'Does this project violate the rules?',
id: 'rule-following', 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 { GlobeIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const sideTypes: Stage = { const sideTypes: Stage = {
title: "Is the project's environment information accurate?", title: "Is the project's environment information accurate?",
id: 'environment', 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 { TriangleAlertIcon } from '@modrinth/assets'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import type { Stage } from '../../types/stage'
const statusAlerts: Stage = { const statusAlerts: Stage = {
title: `Is anything else affecting this project's status?`, title: `Is anything else affecting this project's status?`,
id: 'status-alerts', 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 { AlignLeftIcon } from '@modrinth/assets'
import type { ButtonAction } from '../../types/actions'
import type { Stage } from '../../types/stage'
const summary: Stage = { const summary: Stage = {
title: "Is the project's summary sufficient?", title: "Is the project's summary sufficient?",
text: async () => (await import('../messages/checklist-text/summary/summary.md?raw')).default, text: async () => (await import('../messages/checklist-text/summary/summary.md?raw')).default,

View File

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

View File

@ -1,4 +1,5 @@
import { XIcon } from '@modrinth/assets' import { XIcon } from '@modrinth/assets'
import type { Stage } from '../../types/stage' import type { Stage } from '../../types/stage'
const undefinedProjectStage: 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 { VersionIcon } from '@modrinth/assets'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import type { Stage } from '../../types/stage'
const versions: Stage = { const versions: Stage = {
title: "Are this project's files correct?", title: "Are this project's files correct?",
id: 'versions', 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 checklist } from './data/checklist'
export { default as keybinds } from './data/keybinds' export { default as keybinds } from './data/keybinds'
export { finalPermissionMessages } from './data/modpack-permissions-stage'
export { default as reportQuickReplies } from './data/report-quick-replies' 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 { Project } from '@modrinth/utils'
import type { WeightedMessage } from './messages' import type { WeightedMessage } from './messages'
export type ActionType = 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 { export interface OwnershipTarget {
name: string name: string

View File

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