Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
node_modules
playground
out/test
out/**/*.js.map
out/build.*
.npm-cache
/node_modules/
/playground/
/.npm-cache/

/out/test/
/out/**/*.js.map
/out/build.*

/src/test/testSubsetGrep.properties
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ foo bar baz: "foo bar baz"
```yaml
repos:
- repo: https://github.com/cursorless-dev/talon-tools
rev: v0.8.0
rev: v0.9.0
hooks:
- id: talon-fmt
- id: snippet-fmt
Expand Down
4 changes: 2 additions & 2 deletions dist/lib.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/lib.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/snippetFormatter.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/snippetFormatter.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/talon/convertQuotes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare function convertQuotes(text: string): string;
3 changes: 1 addition & 2 deletions dist/talon/talonFormatter.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { FormatterOptions, SyntaxNode } from "../types.js";
type Options = FormatterOptions<"endOfLine" | "indentTabs" | "indentSize" | "maxLineLength" | "columnWidth" | "insertFinalNewline" | "preserveMultiline">;
export type Options = FormatterOptions<"endOfLine" | "indentTabs" | "indentSize" | "maxLineLength" | "columnWidth" | "insertFinalNewline" | "preserveMultiline">;
export declare function talonFormatter(node: SyntaxNode, options?: Options, debug?: boolean): string;
export {};
18 changes: 9 additions & 9 deletions dist/talonFormatter.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/talonFormatter.js.map

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions dist/test/testUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import type { SyntaxNode } from "../types.js";
export type Content = string | string[];
export declare function getContentString(content: Content): string;
export declare function createNode(type: string, text: string): SyntaxNode;
export declare function captureStreamWrite<T>(stream: NodeJS.WriteStream, callback: () => Promise<T> | T): Promise<{
result: T;
text: string;
}>;
export declare function getFixtures(dirName: string): {
file: string;
title: string;
}[];
export declare function getFixture(fixturePath: string): {
input: string;
expected: string;
};
export declare function getGrep(): string | undefined;
6 changes: 3 additions & 3 deletions dist/treeSitterFormatter.js

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

4 changes: 2 additions & 2 deletions dist/treeSitterFormatter.js.map

Large diffs are not rendered by default.

Loading