Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 3, 2024
1 parent 8bd0d65 commit 4bdf662
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/cursorless-engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export * from "./testUtil/plainObjectToTarget";
export * from "./util/getPartialTargetDescriptors";
export * from "./util/getPrimitiveTargets";
export * from "./util/grammarHelpers";
export * from "./scripts/transformRecordedTests/transformations/upgrade";
export * from "./scripts/transformRecordedTests/transformations/upgrade";
1 change: 0 additions & 1 deletion packages/cursorless-org/src/pages/component-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from "@cursorless/test-case-component";
// import { upgrade } from "@cursorless/cursorless-engine"


import { cheatsheetBodyClasses } from "@cursorless/cheatsheet";

const fixturesDir = path.join("../", "../", "data", "fixtures", "recorded");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ShikiComponent: React.FC<{ data: any }> = ({ data }) => {
dangerouslySetInnerHTML={{ __html: data.before }}
/>
)}
{(data.during) && (
{data.during && (
<>
<div
className="p-4"
Expand Down
10 changes: 2 additions & 8 deletions packages/test-case-component/src/generateHtml.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
getHighlighter,
createCssVariablesTheme,
} from "shiki";
import { getHighlighter, createCssVariablesTheme } from "shiki";
import type { BundledLanguage } from "shiki";

import { renderToHtml } from "./renderToHtml";
Expand All @@ -18,10 +15,7 @@ interface CursorlessFixtureSelection {
}
interface CursorlessFixtureState {
documentContents: any;
marks?: Record<
`${HatType}.${string}`,
{ start: PositionPlainObject }
>;
marks?: Record<`${HatType}.${string}`, { start: PositionPlainObject }>;
flashes?: CursorlessFixtureSelection[];
selections?: CursorlessFixtureSelection[];
thatMark?: [CursorlessFixtureSelection];
Expand Down
2 changes: 1 addition & 1 deletion packages/test-case-component/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./generate-examples";
export * from "./test-case-component";
export * from "./loadFixture";
export * from "./loadFixture";
2 changes: 1 addition & 1 deletion packages/test-case-component/src/renderToHtml.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// forked from https://github.com/SimeonC/shiki/blob/main/packages/shiki/src/renderer.ts
import { htmlEscape } from 'escape-goat';
import { htmlEscape } from "escape-goat";
import type { ThemedToken } from "shiki";

// MIT License
Expand Down
2 changes: 1 addition & 1 deletion packages/test-case-component/src/test-case-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./shiki.css";
import "./styles.css";
import type { TestCaseFixture } from "@cursorless/common";

export const TestCaseComponentPage: React.FC<{ data: TestCaseFixture[];}> = ({
export const TestCaseComponentPage: React.FC<{ data: TestCaseFixture[] }> = ({
data,
}) => {
return (
Expand Down

0 comments on commit 4bdf662

Please sign in to comment.