Skip to content

Commit 2df07ac

Browse files
authored
Bump prettier and typescript-eslint (#1989)
- In preparation for #1979 ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 9fc9f0e commit 2df07ac

File tree

5 files changed

+116
-118
lines changed

5 files changed

+116
-118
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"devDependencies": {
2828
"@pnpm/meta-updater": "1.0.0",
2929
"@types/node": "^16.11.3",
30-
"@typescript-eslint/eslint-plugin": "^5.58.0",
31-
"@typescript-eslint/parser": "^5.58.0",
30+
"@typescript-eslint/eslint-plugin": "^6.9.0",
31+
"@typescript-eslint/parser": "^6.9.0",
3232
"eslint": "^8.38.0",
3333
"eslint-config-prettier": "^8.8.0",
3434
"eslint-import-resolver-typescript": "3.5.5",
3535
"eslint-plugin-import": "2.28.1",
36-
"eslint-plugin-unused-imports": "^2.0.0",
37-
"prettier": "3.0.0",
36+
"eslint-plugin-unused-imports": "^3.0.0",
37+
"prettier": "3.0.3",
3838
"syncpack": "9.8.4",
3939
"tsx": "3.12.3",
4040
"typescript": "^5.1.6"

packages/cursorless-engine/src/actions/Find.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export class FindInWorkspace implements SimpleAction {
1313
async run(targets: Target[]): Promise<ActionReturnValue> {
1414
ensureSingleTarget(targets);
1515

16-
const { returnValue, thatTargets } = await this.actions.getText.run(
17-
targets,
18-
);
16+
const { returnValue, thatTargets } =
17+
await this.actions.getText.run(targets);
1918
const [text] = returnValue as [string];
2019

2120
let query: string;

packages/cursorless-engine/src/testCaseRecorder/TestCaseRecorder.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ export class TestCaseRecorder {
124124
const keys = targetedMarks.map(({ character, symbolColor }) =>
125125
getKey(symbolColor, character),
126126
);
127-
const readableHatMap = await this.hatTokenMap.getReadableMap(
128-
usePrePhraseSnapshot,
129-
);
127+
const readableHatMap =
128+
await this.hatTokenMap.getReadableMap(usePrePhraseSnapshot);
130129
marks = marksToPlainObject(extractTargetedMarks(keys, readableHatMap));
131130
} else {
132131
marks = undefined;

packages/meta-updater/src/updatePackageJson.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ async function getScripts(
105105
if (isRoot) {
106106
// Ensure that `pnpm transform-recorded-tests` mirrors what is in pre-commit
107107
// config
108-
scripts["transform-recorded-tests"] = await getTransformRecordedTestsScript(
109-
packageDir,
110-
);
108+
scripts["transform-recorded-tests"] =
109+
await getTransformRecordedTestsScript(packageDir);
111110

112111
return scripts;
113112
}

0 commit comments

Comments
 (0)