Skip to content

Commit 0545239

Browse files
export IGNORE_FOLDERS
1 parent 78d1bea commit 0545239

10 files changed

Lines changed: 35 additions & 31 deletions

File tree

out/lib.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export { talonFormatter } from "./talon/talonFormatter.js";
33
export { talonListFormatter } from "./talon/talonListFormatter.js";
44
export { treeSitterFormatter } from "./treeSitterFormatter.js";
55
export type { Options, SyntaxNode } from "./types.js";
6-
export { GIT_IGNORE_PATTERNS, GLOB_IGNORE_PATTERNS } from "./util/constants.js";
6+
export { GLOB_IGNORE_PATTERNS, IGNORE_FOLDERS } from "./util/constants.js";
77
export { getOptionsFromConfig } from "./util/getOptionsFromConfig.js";

out/lib.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/snippetFormatter.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/talonFormatter.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/treeSitterFormatter.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/util/constants.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export declare const EXIT_ERROR = 2;
44
export declare const DEFAULT_INDENT_WIDTH = 4;
55
export declare const DEFAULT_MAX_LINE_LENGTH = 80;
66
export declare const DEFAULT_INSERT_FINAL_NEWLINE = true;
7-
export declare const GIT_IGNORE_PATTERNS: string[];
7+
export declare const IGNORE_FOLDERS: string[];
88
export declare const GLOB_IGNORE_PATTERNS: string[];

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cursorless/talon-tools",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Linting and formatting tools for Talon and Cursorless",
55
"author": "Cursorless Dev",
66
"license": "MIT",

src/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export { talonFormatter } from "./talon/talonFormatter.js";
33
export { talonListFormatter } from "./talon/talonListFormatter.js";
44
export { treeSitterFormatter } from "./treeSitterFormatter.js";
55
export type { Options, SyntaxNode } from "./types.js";
6-
export { GIT_IGNORE_PATTERNS, GLOB_IGNORE_PATTERNS } from "./util/constants.js";
6+
export { GLOB_IGNORE_PATTERNS, IGNORE_FOLDERS } from "./util/constants.js";
77
export { getOptionsFromConfig } from "./util/getOptionsFromConfig.js";

src/util/constants.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ export const DEFAULT_INDENT_WIDTH = 4;
99
export const DEFAULT_MAX_LINE_LENGTH = 80;
1010
export const DEFAULT_INSERT_FINAL_NEWLINE = true;
1111

12-
const IGNORE_FOLDERS = [".git", ".svn", ".hg", "node_modules", "__pycache__"];
13-
14-
export const GIT_IGNORE_PATTERNS = IGNORE_FOLDERS.map((folder) => `${folder}/`);
12+
export const IGNORE_FOLDERS = [
13+
".git",
14+
".svn",
15+
".hg",
16+
"node_modules",
17+
"__pycache__",
18+
];
1519

1620
export const GLOB_IGNORE_PATTERNS = IGNORE_FOLDERS.map(
1721
(pattern) => `**/${pattern}/**`,

0 commit comments

Comments
 (0)