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 May 12, 2024
1 parent c1bce87 commit 4c460ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions packages/cursorless-org/src/pages/component-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function loadYamlFiles(dir: string, selectedFiles?: string[]) {
const filePath = path.join(directoryPath, file);
const fileContents = fs.readFileSync(filePath, "utf8");
const yamlData: any = yaml.load(fileContents);
yamlData.filename = file
yamlData.filename = file;
data.push(yamlData);
}
});
Expand Down Expand Up @@ -63,11 +63,12 @@ export async function getStaticProps() {
);

const data = (
await Promise.all([...dataActions, ...dataDecorations].map((val) => loadFixture(val)))
await Promise.all(
[...dataActions, ...dataDecorations].map((val) => loadFixture(val)),
)
).filter((val) => val !== undefined);

return { props: { data,
bodyClasses: cheatsheetBodyClasses } };
return { props: { data, bodyClasses: cheatsheetBodyClasses } };
}

export function App({ data }: { data: any; loaded: any }) {
Expand Down
1 change: 0 additions & 1 deletion packages/test-case-component/src/generateHtml.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getHighlighter, createCssVariablesTheme } from "shiki";
import { BundledLanguage } from "shiki";

import { renderToHtml, HatType, SelectionType, Token } from "./renderToHtml";

Expand Down
2 changes: 1 addition & 1 deletion packages/test-case-component/src/loadFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function loadFixture(data: any) {
during,
before,
after,
filename: data.filename
filename: data.filename,
};
} catch (e) {
console.log("error", e);
Expand Down

0 comments on commit 4c460ea

Please sign in to comment.