Skip to content

Commit

Permalink
fix various linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
asoee committed Dec 10, 2024
1 parent 863103d commit 8d35372
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 41 deletions.
7 changes: 2 additions & 5 deletions packages/cursorless-jetbrains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "cursorless in jetbrains",
"main": "./out/cursorless.js",
"private": true,
"type": "module",
"scripts": {
"build": "pnpm run esbuild:prod && pnpm run populate-dist",
"compile": "tsc --build",
Expand Down Expand Up @@ -35,10 +36,6 @@
"web-tree-sitter": "0.24.4"
},
"devDependencies": {
"@types/chai": "^5.0.0",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "4.17.10",
"@types/uuid": "^10.0.0",
"lodash": "^4.17.21"
"@types/chai": "^5.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
import type { CommandServerApi} from "@cursorless/common";
import { JetbrainsClient } from "./JetbrainsClient";

export class JetbrainsCommandServer {



}
export class JetbrainsCommandServer {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { HatStability } from "@cursorless/common";
import { get } from "lodash";
import type {
Configuration,
Expand Down
4 changes: 2 additions & 2 deletions packages/cursorless-jetbrains/src/ide/JetbrainsEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import type {
import { Position, Range } from "@cursorless/common";

export function jetbrainsOnDidChangeTextDocument(
listener: (event: TextDocumentChangeEvent) => void,
_listener: (event: TextDocumentChangeEvent) => void,
): Disposable {
return dummyEvent();
}

export function jetbrainsOnDidOpenTextDocument(
listener: (event: TextDocument) => any,
_listener: (event: TextDocument) => any,
_thisArgs?: any,
_disposables?: Disposable[] | undefined,
): Disposable {
Expand Down
2 changes: 1 addition & 1 deletion packages/cursorless-jetbrains/src/ide/JetbrainsHats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
} from "@cursorless/common";
import { Notifier } from "@cursorless/common";
import type { JetbrainsClient } from "./JetbrainsClient";
import { JetbrainsHatRange } from "../types/jetbrains.types";
import type { JetbrainsHatRange } from "../types/jetbrains.types";

const HAT_COLORS = [
"default",
Expand Down
5 changes: 1 addition & 4 deletions packages/cursorless-jetbrains/src/ide/JetbrainsIDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import type {
} from "@cursorless/common";
import { pull } from "lodash";
import { JetbrainsCapabilities } from "./JetbrainsCapabilities";
import {
fromJetbrainsContentChange,
jetbrainsOnDidOpenTextDocument,
} from "./JetbrainsEvents";
import { fromJetbrainsContentChange } from "./JetbrainsEvents";

import type { JetbrainsClient } from "./JetbrainsClient";
import { JetbrainsClipboard } from "./JetbrainsClipboard";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Edit } from "@cursorless/common";
import { type InMemoryTextDocument } from "@cursorless/common";
import type { Jetbrains } from "../types/jetbrains.types";
import type { EditorEdit } from "../types/types";
import type { JetbrainsIDE } from "./JetbrainsIDE";
import type { JetbrainsClient } from "./JetbrainsClient";
Expand Down
2 changes: 1 addition & 1 deletion packages/cursorless-jetbrains/src/types/jetbrains.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Range } from "@cursorless/common";
import type { Range } from "@cursorless/common";
import type { EditorEdit, EditorState, SelectionOffsets } from "./types";

export type JetbrainsNamespace = "user";
Expand Down
7 changes: 1 addition & 6 deletions packages/cursorless-jetbrains/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "ES2020",
"rootDir": "src",
"outDir": "out"
"target": "ES2020"
},
"references": [
{
Expand All @@ -12,9 +10,6 @@
{
"path": "../cursorless-engine"
},
{
"path": "../node-common"
},
{
"path": "../test-case-recorder"
}
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

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

3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
{
"path": "./packages/cursorless-everywhere-talon-e2e"
},
{
"path": "./packages/cursorless-jetbrains"
},
{
"path": "./packages/cursorless-neovim"
},
Expand Down

0 comments on commit 8d35372

Please sign in to comment.