Skip to content

Commit

Permalink
Applied new perfectionist rules
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Nov 25, 2024
1 parent 32a7a91 commit 4fe621f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import js from "@eslint/js";
import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";
import commentsConfig from "@eslint-community/eslint-plugin-eslint-comments/configs";
import js from "@eslint/js";
import compat from "eslint-plugin-compat";
import jest from "eslint-plugin-jest";
import perfectionist from "eslint-plugin-perfectionist";
Expand Down
38 changes: 19 additions & 19 deletions packages/frontend/src/interfaces/ProjectInfo.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
interface ProjectInfoMaintainer {
email?: string;
export interface ProjectInfo {
description: string;
"help-issue-label"?: string;
links: Array<ProjectInfoLink>;
maintainers: Array<ProjectInfoMaintainer>;
name: string;
"short-description": string;
tags?: Array<string>;
}

interface ProjectInfoLinkSlack {
channel: string;
space: string;
type: "slack";
uri: string;
}
export type ProjectInfoLink =
| ProjectInfoLinkNamed
| ProjectInfoLinkOther
| ProjectInfoLinkSlack;

interface ProjectInfoLinkNamed {
name: string;
Expand All @@ -21,17 +24,14 @@ interface ProjectInfoLinkOther {
uri: string;
}

export type ProjectInfoLink =
| ProjectInfoLinkNamed
| ProjectInfoLinkOther
| ProjectInfoLinkSlack;
interface ProjectInfoLinkSlack {
channel: string;
space: string;
type: "slack";
uri: string;
}

export interface ProjectInfo {
description: string;
"help-issue-label"?: string;
links: Array<ProjectInfoLink>;
maintainers: Array<ProjectInfoMaintainer>;
interface ProjectInfoMaintainer {
email?: string;
name: string;
"short-description": string;
tags?: Array<string>;
}
4 changes: 2 additions & 2 deletions packages/frontend/src/interfaces/ProjectListing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Project } from "./Project";
import type { ProjectInfo } from "./ProjectInfo";
import type { ProjectIssue } from "./ProjectIssue";

export type ProjectListing = {
export type ProjectListing = Project & {
info: ProjectInfo;
issues: Array<ProjectIssue>;
} & Project;
};

0 comments on commit 4fe621f

Please sign in to comment.