chore: move oxlint tsconfigs under config

This commit is contained in:
Peter Steinberger
2026-05-03 15:11:57 +01:00
parent 39c5bbf08e
commit ad1ccd671b
10 changed files with 49 additions and 18 deletions

View File

@@ -231,7 +231,7 @@ describe("local-heavy-check-runtime", () => {
expect(args).toEqual([
"--type-aware",
"--tsconfig",
"tsconfig.oxlint.json",
"config/tsconfig/oxlint.json",
"--allow",
"eslint/no-underscore-dangle",
"--report-unused-disable-directives-severity",
@@ -246,7 +246,7 @@ describe("local-heavy-check-runtime", () => {
expect(args).toEqual([
"--type-aware",
"--tsconfig",
"tsconfig.oxlint.json",
"config/tsconfig/oxlint.json",
"--allow",
"eslint/no-underscore-dangle",
"--report-unused-disable-directives-severity",
@@ -262,7 +262,7 @@ describe("local-heavy-check-runtime", () => {
"--threads=8",
"--type-aware",
"--tsconfig",
"tsconfig.oxlint.json",
"config/tsconfig/oxlint.json",
"--allow",
"eslint/no-underscore-dangle",
"--report-unused-disable-directives-severity",
@@ -282,7 +282,7 @@ describe("local-heavy-check-runtime", () => {
expect(args).toEqual([
"--type-aware",
"--tsconfig",
"tsconfig.oxlint.json",
"config/tsconfig/oxlint.json",
"--allow",
"eslint/no-underscore-dangle",
"--report-unused-disable-directives-severity",

View File

@@ -80,16 +80,16 @@ function readJson(path: string): unknown {
describe("oxlint config", () => {
it("includes bundled extensions in type-aware lint coverage", () => {
const tsconfig = readJson("tsconfig.oxlint.json") as OxlintTsconfig;
const tsconfig = readJson("config/tsconfig/oxlint.json") as OxlintTsconfig;
expect(tsconfig.include).toContain("extensions/**/*");
expect(tsconfig.exclude ?? []).not.toContain("extensions");
expect(tsconfig.include).toContain("../../extensions/**/*");
expect(tsconfig.exclude ?? []).not.toContain("../../extensions");
});
it("includes scripts in root type-aware lint coverage", () => {
const tsconfig = readJson("tsconfig.oxlint.json") as OxlintTsconfig;
const tsconfig = readJson("config/tsconfig/oxlint.json") as OxlintTsconfig;
expect(tsconfig.include).toContain("scripts/**/*");
expect(tsconfig.include).toContain("../../scripts/**/*");
});
it("has a discoverable scripts tsconfig for type-aware linting", () => {

View File

@@ -36,7 +36,7 @@ describe("run-oxlint", () => {
it("filters tracked targets missing from sparse checkouts", () => {
const result = filterSparseMissingOxlintTargets(
["--tsconfig", "tsconfig.oxlint.core.json", "src", "ui", "packages", "--threads=1"],
["--tsconfig", "config/tsconfig/oxlint.core.json", "src", "ui", "packages", "--threads=1"],
{
fileExists: (target: string) => target.endsWith("/src"),
isSparseCheckoutEnabled: () => true,
@@ -45,7 +45,7 @@ describe("run-oxlint", () => {
);
expect(result).toEqual({
args: ["--tsconfig", "tsconfig.oxlint.core.json", "src", "--threads=1"],
args: ["--tsconfig", "config/tsconfig/oxlint.core.json", "src", "--threads=1"],
hadExplicitTargets: true,
remainingExplicitTargets: 1,
skippedTargets: ["ui", "packages"],