mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:00:44 +00:00
chore: move oxlint tsconfigs under config
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user