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
5 changes: 5 additions & 0 deletions src/signals/path-matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const LOCKFILE_NAMES: ReadonlySet<string> = new Set([
"composer.lock",
"gemfile.lock",
"go.sum",
"go.work.sum",
"uv.lock",
"packages.lock.json",
"flake.lock",
Expand Down Expand Up @@ -78,12 +79,16 @@ const CONFIG_FILE_NAMES: ReadonlySet<string> = new Set([
"makefile",
".editorconfig",
".nvmrc",
".node-version",
".npmrc",
".python-version",
".ruby-version",
".browserslistrc",
// Monorepo / task-runner config (Turborepo, Nx, Lerna).
"turbo.json",
"nx.json",
"lerna.json",
"pnpm-workspace.yaml",
// Linter / formatter config that does not follow the `.eslintrc` / `*.config.*` shapes (Biome).
"biome.json",
"biome.jsonc",
Expand Down
13 changes: 12 additions & 1 deletion test/unit/path-matchers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ describe("isLockfile", () => {
"pnpm-lock.yaml",
"Cargo.lock",
"go.sum",
"go.work.sum",
"uv.lock",
"poetry.lock",
"bun.lock",
Expand Down Expand Up @@ -165,7 +166,16 @@ describe("isNonSubstantivePaddingFile", () => {

describe("isConfigFile", () => {
it("matches config files by exact basename (case-insensitive)", () => {
for (const path of ["Dockerfile", "frontend/Makefile", ".editorconfig", "ci/.nvmrc", ".npmrc"]) {
for (const path of [
"Dockerfile",
"frontend/Makefile",
".editorconfig",
"ci/.nvmrc",
".node-version",
".npmrc",
".python-version",
".ruby-version",
]) {
expect(isConfigFile(path)).toBe(true);
}
});
Expand All @@ -175,6 +185,7 @@ describe("isConfigFile", () => {
"turbo.json",
"nx.json",
"lerna.json",
"pnpm-workspace.yaml",
"biome.json",
"biome.jsonc",
"packages/app/.gitignore",
Expand Down
Loading