Skip to content

Commit

Permalink
Merge pull request #1716 from skaut/dependabot/npm_and_yarn/packages/…
Browse files Browse the repository at this point in the history
…frontend/eslint-plugin-perfectionist-4.1.2

Bump eslint-plugin-perfectionist from 3.9.1 to 4.1.2 in /packages/frontend
  • Loading branch information
github-actions[bot] authored Nov 25, 2024
2 parents 7f89fc9 + 4fe621f commit abf5907
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 80 deletions.
7 changes: 5 additions & 2 deletions 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 Expand Up @@ -80,7 +80,10 @@ export default tseslint.config(
"error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-use-before-define": [
"error",
{ functions: false },
],
"@typescript-eslint/no-useless-empty-export": "error",
"@typescript-eslint/parameter-properties": "error",
"@typescript-eslint/prefer-enum-initializers": "error",
Expand Down
73 changes: 17 additions & 56 deletions packages/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-compat": "^6.0.1",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-perfectionist": "^4.1.2",
"eslint-plugin-prefer-arrow-functions": "^3.4.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
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 abf5907

Please sign in to comment.