Skip to content

Commit

Permalink
Enable stylistic eslint rules (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaput authored Dec 4, 2024
1 parent 504a63e commit 416694d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default ts.config(
},
js.configs.recommended,
ts.configs.recommended,
ts.configs.stylistic,
prettier,
{
languageOptions: {
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface ConfigProps {
}

export class Config {
public static ROOT: string = "cairo1";
public static ROOT = "cairo1";

// TODO(mkaput): Attach configs to workspace folders when we'll support
// multi-root workspaces.
Expand Down
16 changes: 8 additions & 8 deletions src/lspRequests.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as lc from "vscode-languageclient/node";

export type ExpandMacroRequest = {
export interface ExpandMacroRequest {
textDocument: { uri: string };
position: { line: number; character: number };
};
}
export type ExpandMacroResponse = string | null;
export const expandMacro = new lc.RequestType<ExpandMacroRequest, ExpandMacroResponse, void>(
"cairo/expandMacro",
);

export type ProvideVirtualFileRequest = {
export interface ProvideVirtualFileRequest {
uri: string;
};
export type ProvideVirtualFileResponse = {
}
export interface ProvideVirtualFileResponse {
content?: string;
};
}
export const vfsProvide = new lc.RequestType<
ProvideVirtualFileRequest,
ProvideVirtualFileResponse,
Expand All @@ -26,8 +26,8 @@ export const viewAnalyzedCrates = new lc.RequestType0<ViewAnalyzedCratesResponse
"cairo/viewAnalyzedCrates",
);

export type ProjectConfigParsingFailedRequest = {
export interface ProjectConfigParsingFailedRequest {
projectConfigPath: string;
};
}
export const projectConfigParsingFailed =
new lc.NotificationType<ProjectConfigParsingFailedRequest>("cairo/projectConfigParsingFailed");

0 comments on commit 416694d

Please sign in to comment.