Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(scripts): check:changed passes when only lint-ignored code changed #29596

Mergedsaphid(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/29596/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 4 additions and 2 deletions.

x
0 of 2 viewed, 2 left
1 addition and 1 deletionscripts/check-changed.test.tsModified
View file
@@ -397,7 +397,7 @@
expect(result.status, result.stdout + result.stderr).toBe(0);
const calls = project.calls();
expect(calls.find(({ args }) => args[0] === "lint")).toEqual({
- args: ["lint", project.source],
+ args: ["lint", "--no-error-on-unmatched-pattern", project.source],
cwd: project.root,
});
expect(calls.some(({ args }) => args[0] === "fmt" && args.includes(project.source))).toBe(true);
3 additions and 1 deletionscripts/check-changed.tsModified
View file
@@ -469,7 +469,9 @@
...(present.length > 0
? [command("format", ["fmt", "--check", "--no-error-on-unmatched-pattern", ...present])]
: []),
- ...(code.length > 0 ? [command("lint", ["lint", ...code])] : []),
+ ...(code.length > 0
+ ? [command("lint", ["lint", "--no-error-on-unmatched-pattern", ...code])]
+ : []),
...(runKnip
? knipPasses.map((args, index) => command(`knip ${index + 1}/${knipPasses.length}`, args))
: []),