Skip to content

Commit

Permalink
fix: typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 committed Dec 4, 2024
1 parent f04210d commit 2fb8403
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 20 deletions.
5 changes: 0 additions & 5 deletions packages/components/src/components/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ export const Alert: React.FC<AlertProps> = (props) => {
return <CodeChangeAlert data={data} cwd={cwd} />;
}

// TODO: If need add emo alters.
if (data.type === 'emo') {
return <></>;
}

if (data.type === 'package-relation') {
const { getPackageRelationContentComponent } = props;
return (
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/components/Alert/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,3 @@ export interface CodeViewAlertProps {
export interface LinkAlertProps {
data: Rule.LinkRuleStoreData;
}

export interface EMOAlertProps {
data: Rule.EMORuleStoreData;
}
2 changes: 1 addition & 1 deletion packages/sdk/src/sdk/multiple/controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Manifest } from '@rsdoctor/types';
import { RsdoctorPrimarySDK } from './slave';
import { RsdoctorPrimarySDK } from './primary';

export class RsdoctorSDKController {
readonly slaves: RsdoctorPrimarySDK[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/sdk/multiple/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './controller';
export * from './slave';
export * from './primary';
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/sdk/src/sdk/multiple/server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Server } from '@rsdoctor/utils/build';
import { RsdoctorServer } from '../server';
import type { RsdoctorPrimarySDK } from './slave';
import type { RsdoctorPrimarySDK } from './primary';

export class RsdoctorSlaveServer extends RsdoctorServer {
protected sdk: RsdoctorPrimarySDK;
Expand Down
9 changes: 1 addition & 8 deletions packages/types/src/rule/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { WorkspaceCheckDataType } from '../emo';
import type { RuleMessage, RuleMessageCodeEnumerated } from './code';
import type { SourceRange } from '../sdk';
import type { PackageBasicData } from '../sdk/package';
Expand Down Expand Up @@ -127,11 +126,6 @@ export interface CodeChangeRuleStoreData extends BaseRuleStoreData {
};
}

export interface EMORuleStoreData extends BaseRuleStoreData {
type: 'emo';
emoCheckData: WorkspaceCheckDataType;
}

export interface OverlayRuleStoreData extends BaseRuleStoreData {
code: RuleMessageCodeEnumerated.Overlay;
stack?: string;
Expand All @@ -142,7 +136,6 @@ export type RuleStoreDataItem =
| FileRelationRuleStoreData
| CodeChangeRuleStoreData
| PackageRelationDiffRuleStoreData
| CodeViewRuleStoreData
| EMORuleStoreData;
| CodeViewRuleStoreData;

export type RuleStoreData = RuleStoreDataItem[];

0 comments on commit 2fb8403

Please sign in to comment.