Skip to content

Commit c390604

Browse files
fix(CI): upgrade prettier oxc plugin version (#8242)
* fix: upgrade prettier oxc plugin version * fix: type errors
1 parent 1090b3e commit c390604

File tree

31 files changed

+237
-243
lines changed

31 files changed

+237
-243
lines changed

apps/admin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@plane/eslint-config": "workspace:*",
5353
"@plane/tailwind-config": "workspace:*",
5454
"@plane/typescript-config": "workspace:*",
55-
"@prettier/plugin-oxc": "0.0.4",
55+
"@prettier/plugin-oxc": "0.1.3",
5656
"@react-router/dev": "catalog:",
5757
"@types/lodash-es": "catalog:",
5858
"@types/node": "catalog:",

apps/live/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"devDependencies": {
5656
"@plane/eslint-config": "workspace:*",
5757
"@plane/typescript-config": "workspace:*",
58-
"@prettier/plugin-oxc": "0.0.4",
58+
"@prettier/plugin-oxc": "0.1.3",
5959
"@types/compression": "1.8.1",
6060
"@types/cors": "^2.8.17",
6161
"@types/express": "4.17.23",

apps/space/core/types/issue.d.ts

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,30 @@ export type TIssueQueryFilters = Partial<TFilters>;
3333

3434
export type TIssueQueryFiltersParams = Partial<Record<keyof TFilters, string>>;
3535

36-
export interface IIssue
37-
extends Pick<
38-
TIssue,
39-
| "description_html"
40-
| "created_at"
41-
| "updated_at"
42-
| "created_by"
43-
| "id"
44-
| "name"
45-
| "priority"
46-
| "state_id"
47-
| "project_id"
48-
| "sequence_id"
49-
| "sort_order"
50-
| "start_date"
51-
| "target_date"
52-
| "cycle_id"
53-
| "module_ids"
54-
| "label_ids"
55-
| "assignee_ids"
56-
| "attachment_count"
57-
| "sub_issues_count"
58-
| "link_count"
59-
| "estimate_point"
60-
> {
36+
export interface IIssue extends Pick<
37+
TIssue,
38+
| "description_html"
39+
| "created_at"
40+
| "updated_at"
41+
| "created_by"
42+
| "id"
43+
| "name"
44+
| "priority"
45+
| "state_id"
46+
| "project_id"
47+
| "sequence_id"
48+
| "sort_order"
49+
| "start_date"
50+
| "target_date"
51+
| "cycle_id"
52+
| "module_ids"
53+
| "label_ids"
54+
| "assignee_ids"
55+
| "attachment_count"
56+
| "sub_issues_count"
57+
| "link_count"
58+
| "estimate_point"
59+
> {
6160
comments: TIssuePublicComment[];
6261
reaction_items: IIssueReaction[];
6362
vote_items: IVote[];

apps/space/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@plane/eslint-config": "workspace:*",
5757
"@plane/tailwind-config": "workspace:*",
5858
"@plane/typescript-config": "workspace:*",
59-
"@prettier/plugin-oxc": "0.0.4",
59+
"@prettier/plugin-oxc": "0.1.3",
6060
"@react-router/dev": "catalog:",
6161
"@types/lodash-es": "catalog:",
6262
"@types/node": "catalog:",

apps/web/core/components/editor/sticky-editor/editor.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ import { useParseEditorContent } from "@/hooks/use-parse-editor-content";
1515
import { useEditorFlagging } from "@/plane-web/hooks/use-editor-flagging";
1616
import { StickyEditorToolbar } from "./toolbar";
1717

18-
interface StickyEditorWrapperProps
19-
extends Omit<
20-
Omit<ILiteTextEditorProps, "extendedEditorProps">,
21-
"disabledExtensions" | "editable" | "flaggedExtensions" | "fileHandler" | "mentionHandler" | "getEditorMetaData"
22-
> {
18+
interface StickyEditorWrapperProps extends Omit<
19+
Omit<ILiteTextEditorProps, "extendedEditorProps">,
20+
"disabledExtensions" | "editable" | "flaggedExtensions" | "fileHandler" | "mentionHandler" | "getEditorMetaData"
21+
> {
2322
workspaceSlug: string;
2423
workspaceId: string;
2524
projectId?: string;

apps/web/core/components/onboarding/steps/profile/root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import { UserImageUploadModal } from "@/components/core/modals/user-image-upload
1515
// helpers
1616
import { captureError, captureView } from "@/helpers/event-tracker.helper";
1717
// hooks
18+
import { useInstance } from "@/hooks/store/use-instance";
1819
import { useUser, useUserProfile } from "@/hooks/store/user";
1920
// services
2021
import { AuthService } from "@/services/auth.service";
2122
// local components
2223
import { CommonOnboardingHeader } from "../common";
2324
import { MarketingConsent } from "./consent";
2425
import { SetPasswordRoot } from "./set-password";
25-
import { useInstance } from "@/hooks/store/use-instance";
2626

2727
type Props = {
2828
handleStepChange: (step: EOnboardingSteps, skipInvites?: boolean) => void;
@@ -255,7 +255,7 @@ export const ProfileSetupStep = observer(function ProfileSetupStep({ handleStepC
255255
</Button>
256256

257257
{/* Marketing Consent */}
258-
{!instanceConfig.is_self_managed && (
258+
{!instanceConfig?.is_self_managed && (
259259
<MarketingConsent
260260
isChecked={!!watch("has_marketing_email_consent")}
261261
handleChange={(has_marketing_email_consent) =>

apps/web/core/store/base-command-palette.store.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ export abstract class BaseCommandPaletteStore implements IBaseCommandPaletteStor
8989
protected getCoreModalsState(): boolean {
9090
return Boolean(
9191
this.isCreateIssueModalOpen ||
92-
this.isCreateCycleModalOpen ||
93-
this.isCreateProjectModalOpen ||
94-
this.isCreateModuleModalOpen ||
95-
this.isCreateViewModalOpen ||
96-
store.powerK.isShortcutsListModalOpen ||
97-
this.isBulkDeleteIssueModalOpen ||
98-
this.isDeleteIssueModalOpen ||
99-
this.createPageModal.isOpen ||
100-
this.allStickiesModal
92+
this.isCreateCycleModalOpen ||
93+
this.isCreateProjectModalOpen ||
94+
this.isCreateModuleModalOpen ||
95+
this.isCreateViewModalOpen ||
96+
store.powerK.isShortcutsListModalOpen ||
97+
this.isBulkDeleteIssueModalOpen ||
98+
this.isDeleteIssueModalOpen ||
99+
this.createPageModal.isOpen ||
100+
this.allStickiesModal
101101
);
102102
}
103103
// computedFn

apps/web/core/store/issue/issue-details/root.store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export type TIssueCrudOperationState = {
6060
};
6161

6262
export interface IIssueDetail
63-
extends IIssueStoreActions,
63+
extends
64+
IIssueStoreActions,
6465
IIssueReactionStoreActions,
6566
IIssueLinkStoreActions,
6667
IIssueSubIssuesStoreActions,

apps/web/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@
8080
"@plane/eslint-config": "workspace:*",
8181
"@plane/tailwind-config": "workspace:*",
8282
"@plane/typescript-config": "workspace:*",
83-
"@prettier/plugin-oxc": "0.0.4",
83+
"@prettier/plugin-oxc": "0.1.3",
8484
"@react-router/dev": "catalog:",
8585
"@types/lodash-es": "catalog:",
8686
"@types/node": "catalog:",
8787
"@types/react": "catalog:",
8888
"@types/react-color": "^3.0.6",
8989
"@types/react-dom": "catalog:",
90-
"prettier": "^3.2.5",
9190
"typescript": "catalog:",
9291
"vite": "catalog:",
9392
"vite-tsconfig-paths": "^5.1.4"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"check:types": "turbo run check:types"
1919
},
2020
"devDependencies": {
21-
"@prettier/plugin-oxc": "0.0.4",
21+
"@prettier/plugin-oxc": "0.1.3",
2222
"prettier": "^3.7.3",
2323
"turbo": "2.6.1"
2424
},

0 commit comments

Comments
 (0)