Skip to content

Commit 4898cab

Browse files
committed
fix(lint): keep the ignore helper under the package's comment share
1 parent efa6561 commit 4898cab

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎packages/lint/src/projectIgnore.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { existsSync, readFileSync } from "node:fs";
22
import { join } from "node:path";
33
import ignore, { type Ignore } from "ignore";
44

5-
// Unanchored ".*" matches a dot-prefixed name at any depth, and a `.hyperframesignore` negation can still override it.
65
const DEFAULT_PROJECT_IGNORE = ["/renders/", "/snapshots/", ".*"];
76

8-
/** What the project leaves out: renders, snapshots, dotfiles and its `.hyperframesignore` rules. Paths are relative,
9-
* with `/` separators, and a folder is asked about with a trailing `/`. */
7+
/** What the project leaves out; ask with a relative `/` path, a folder with a trailing `/`. */
108
export function projectIgnore(projectDir: string): Ignore {
119
const matcher = ignore().add(DEFAULT_PROJECT_IGNORE);
1210
const ignorePath = join(projectDir, ".hyperframesignore");

0 commit comments

Comments
 (0)