fix(CI): upgrade prettier oxc plugin version (#8242)
* fix: upgrade prettier oxc plugin version * fix: type errors
This commit is contained in:
parent
1090b3e938
commit
c3906048ea
31 changed files with 237 additions and 243 deletions
|
|
@ -20,7 +20,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
"tsdown": "catalog:",
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/express": "4.17.23",
|
||||
"@types/node": "catalog:",
|
||||
"@types/ws": "^8.5.10",
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/tailwind-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
"@types/react-dom": "catalog:",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
"tsdown": "catalog:",
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/lodash-es": "catalog:",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/express": "4.17.23",
|
||||
"@types/node": "catalog:",
|
||||
"tsdown": "catalog:",
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/tailwind-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@storybook/addon-designs": "10.0.2",
|
||||
"@storybook/addon-docs": "9.1.10",
|
||||
"@storybook/react-vite": "9.1.10",
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"tsdown": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/lodash-es": "catalog:",
|
||||
"@types/node": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@ import type { IFilterAdapter, TExternalFilter, TFilterExpression, TFilterPropert
|
|||
* @template K - Property key type that extends TFilterProperty
|
||||
* @template E - External filter type that extends TExternalFilter
|
||||
*/
|
||||
export abstract class FilterAdapter<K extends TFilterProperty, E extends TExternalFilter>
|
||||
implements IFilterAdapter<K, E>
|
||||
{
|
||||
export abstract class FilterAdapter<K extends TFilterProperty, E extends TExternalFilter> implements IFilterAdapter<
|
||||
K,
|
||||
E
|
||||
> {
|
||||
/**
|
||||
* Converts an external filter format to internal filter expression.
|
||||
* Must be implemented by concrete adapter classes.
|
||||
|
|
|
|||
|
|
@ -55,9 +55,10 @@ export type TConfigManagerParams = {
|
|||
* @template V - The filter value type extending TFilterValue
|
||||
* @template E - The external filter type extending TExternalFilter
|
||||
*/
|
||||
export class FilterConfigManager<P extends TFilterProperty, E extends TExternalFilter = TExternalFilter>
|
||||
implements IFilterConfigManager<P>
|
||||
{
|
||||
export class FilterConfigManager<
|
||||
P extends TFilterProperty,
|
||||
E extends TExternalFilter = TExternalFilter,
|
||||
> implements IFilterConfigManager<P> {
|
||||
// observables
|
||||
filterConfigs: IFilterConfigManager<P>["filterConfigs"];
|
||||
configOptions: IFilterConfigManager<P>["configOptions"];
|
||||
|
|
|
|||
|
|
@ -25,8 +25,10 @@ type TOperatorOptionForDisplay = {
|
|||
label: string;
|
||||
};
|
||||
|
||||
export interface IFilterConfig<P extends TFilterProperty, V extends TFilterValue = TFilterValue>
|
||||
extends TFilterConfig<P, V> {
|
||||
export interface IFilterConfig<P extends TFilterProperty, V extends TFilterValue = TFilterValue> extends TFilterConfig<
|
||||
P,
|
||||
V
|
||||
> {
|
||||
// computed
|
||||
allEnabledSupportedOperators: TSupportedOperators[];
|
||||
firstOperator: TSupportedOperators | undefined;
|
||||
|
|
@ -44,9 +46,10 @@ export interface IFilterConfig<P extends TFilterProperty, V extends TFilterValue
|
|||
mutate: (updates: Partial<TFilterConfig<P, V>>) => void;
|
||||
}
|
||||
|
||||
export class FilterConfig<P extends TFilterProperty, V extends TFilterValue = TFilterValue>
|
||||
implements IFilterConfig<P, V>
|
||||
{
|
||||
export class FilterConfig<P extends TFilterProperty, V extends TFilterValue = TFilterValue> implements IFilterConfig<
|
||||
P,
|
||||
V
|
||||
> {
|
||||
// observables
|
||||
id: IFilterConfig<P, V>["id"];
|
||||
label: IFilterConfig<P, V>["label"];
|
||||
|
|
|
|||
|
|
@ -70,9 +70,10 @@ export interface IFilterInstanceHelper<P extends TFilterProperty, E extends TExt
|
|||
* @template K - The filter property type extending TFilterProperty
|
||||
* @template E - The external filter type extending TExternalFilter
|
||||
*/
|
||||
export class FilterInstanceHelper<P extends TFilterProperty, E extends TExternalFilter>
|
||||
implements IFilterInstanceHelper<P, E>
|
||||
{
|
||||
export class FilterInstanceHelper<
|
||||
P extends TFilterProperty,
|
||||
E extends TExternalFilter,
|
||||
> implements IFilterInstanceHelper<P, E> {
|
||||
// parent filter instance
|
||||
private _filterInstance: IFilterInstance<P, E>;
|
||||
// adapter
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
"@types/react-dom": "catalog:",
|
||||
|
|
|
|||
|
|
@ -79,8 +79,7 @@ export interface IBaseLayoutsBaseProps<T extends IBaseLayoutsBaseItem> extends I
|
|||
// Group Props
|
||||
|
||||
export interface IBaseLayoutsBaseGroupProps<T extends IBaseLayoutsBaseItem>
|
||||
extends IDragDropHandlers<T>,
|
||||
IRenderProps<T> {
|
||||
extends IDragDropHandlers<T>, IRenderProps<T> {
|
||||
group: IBaseLayoutsBaseGroup;
|
||||
itemIds: string[];
|
||||
items: Record<string, T>;
|
||||
|
|
@ -92,8 +91,7 @@ export interface IBaseLayoutsBaseGroupProps<T extends IBaseLayoutsBaseItem>
|
|||
// Item Props
|
||||
|
||||
export interface IBaseLayoutsBaseItemProps<T extends IBaseLayoutsBaseItem>
|
||||
extends IDragDropHandlers<T>,
|
||||
IItemRenderProps<T> {
|
||||
extends IDragDropHandlers<T>, IItemRenderProps<T> {
|
||||
item: T;
|
||||
index: number;
|
||||
groupId: string;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ export type TGanttDisplayOptions = {
|
|||
|
||||
// Main Gantt Layout Props
|
||||
export interface IBaseLayoutsGanttProps<T extends IBaseLayoutsGanttItem>
|
||||
extends Omit<IBaseLayoutsBaseProps<T>, "renderItem" | "enableDragDrop" | "onDrop" | "canDrag">,
|
||||
extends
|
||||
Omit<IBaseLayoutsBaseProps<T>, "renderItem" | "enableDragDrop" | "onDrop" | "canDrag">,
|
||||
IGanttRenderProps<T>,
|
||||
IGanttCapabilities,
|
||||
TGanttDisplayOptions {
|
||||
|
|
|
|||
|
|
@ -153,31 +153,30 @@ export type TWorkItemWidgets = "sub-work-items" | "relations" | "links" | "attac
|
|||
|
||||
export type TIssueServiceType = EIssueServiceType.ISSUES | EIssueServiceType.EPICS | EIssueServiceType.WORK_ITEMS;
|
||||
|
||||
export interface IPublicIssue
|
||||
extends Pick<
|
||||
TIssue,
|
||||
| "description_html"
|
||||
| "created_at"
|
||||
| "updated_at"
|
||||
| "created_by"
|
||||
| "id"
|
||||
| "name"
|
||||
| "priority"
|
||||
| "state_id"
|
||||
| "project_id"
|
||||
| "sequence_id"
|
||||
| "sort_order"
|
||||
| "start_date"
|
||||
| "target_date"
|
||||
| "cycle_id"
|
||||
| "module_ids"
|
||||
| "label_ids"
|
||||
| "assignee_ids"
|
||||
| "attachment_count"
|
||||
| "sub_issues_count"
|
||||
| "link_count"
|
||||
| "estimate_point"
|
||||
> {
|
||||
export interface IPublicIssue extends Pick<
|
||||
TIssue,
|
||||
| "description_html"
|
||||
| "created_at"
|
||||
| "updated_at"
|
||||
| "created_by"
|
||||
| "id"
|
||||
| "name"
|
||||
| "priority"
|
||||
| "state_id"
|
||||
| "project_id"
|
||||
| "sequence_id"
|
||||
| "sort_order"
|
||||
| "start_date"
|
||||
| "target_date"
|
||||
| "cycle_id"
|
||||
| "module_ids"
|
||||
| "label_ids"
|
||||
| "assignee_ids"
|
||||
| "attachment_count"
|
||||
| "sub_issues_count"
|
||||
| "link_count"
|
||||
| "estimate_point"
|
||||
> {
|
||||
comments: TIssuePublicComment[];
|
||||
reaction_items: IIssuePublicReaction[];
|
||||
vote_items: IPublicVote[];
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/tailwind-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@storybook/addon-essentials": "^8.1.1",
|
||||
"@storybook/addon-interactions": "^8.1.1",
|
||||
"@storybook/addon-links": "^8.1.1",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,10 @@ import React, { useState } from "react";
|
|||
import { cn } from "@plane/utils";
|
||||
import { AuthInput } from "./auth-input";
|
||||
|
||||
export interface AuthConfirmPasswordInputProps
|
||||
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "autoComplete"> {
|
||||
export interface AuthConfirmPasswordInputProps extends Omit<
|
||||
React.InputHTMLAttributes<HTMLInputElement>,
|
||||
"autoComplete"
|
||||
> {
|
||||
password: string;
|
||||
label?: string;
|
||||
error?: string;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@prettier/plugin-oxc": "0.0.4",
|
||||
"@prettier/plugin-oxc": "0.1.3",
|
||||
"@types/hast": "^3.0.4",
|
||||
"@types/lodash-es": "catalog:",
|
||||
"@types/mdast": "^4.0.4",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue